CVE-2022-50219
published high CVSS 3.1 · 7.8bpf: Fix KASAN use-after-free Read in compute_effective_progs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxaf6eea57437a830293eab56246b6025cc7d46ee7 to < 3527e3cbb84d8868c4d4e91ba55915f96d39ec3d · af6eea57437a830293eab56246b6025cc7d46ee7 to < 1f8ca9c40e6222ce431e9ba5dae3cccce8ef9443 · af6eea57437a830293eab56246b6025cc7d46ee7 to < 6336388715afa419cc97d0255bda3bba1b96b7ca · af6eea57437a830293eab56246b6025cc7d46ee7 to < be001f9da71eaa3b61e186fb88bde3279728bdca · af6eea57437a830293eab56246b6025cc7d46ee7 to < 4c46091ee985ae84c60c5e95055d779fcd291d87 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.7 (affected) · 0 to < 5.7 (unaffected · semver) · 5.10.138 through 5.10.* (unaffected · semver) · 5.15.61 through 5.15.* (unaffected · semver) · 5.18.18 through 5.18.* (unaffected · semver) · 5.19.2 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-020 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2022-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-abi-whitelistsnoarch | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-coreaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-coreppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-cores390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-corex86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugs390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-coreaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-coreppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-cores390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-corex86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfoaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfoppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfos390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfox86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-devels390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modulesaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modulesppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-moduless390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modulesx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modules-extraaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modules-extrappc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modules-extras390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modules-extrax86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfoaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfoppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfos390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfox86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfo-common-aarch64aarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfo-common-ppc64leppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfo-common-s390xs390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfo-common-x86_64x86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-develaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-develppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-devels390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-develx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-docnoarch | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modulesaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modulesppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-moduless390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modulesx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modules-extraaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modules-extrappc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modules-extras390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modules-extrax86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-toolsaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-toolsppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-toolss390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-toolsx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-debuginfoaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-debuginfoppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-debuginfos390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-debuginfox86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-libsaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-libsppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-libsx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdumps390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-cores390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-debuginfos390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-devels390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-moduless390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-modules-extras390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | perfaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | perfppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | perfs390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | perfx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | perf-debuginfoaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | perf-debuginfoppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | perf-debuginfos390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | perf-debuginfox86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perfaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perfppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perfs390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perfx86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perf-debuginfoaarch64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perf-debuginfoppc64le | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perf-debuginfos390x | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perf-debuginfox86_64 | Advisory build | 4.18.0-240.el8 | RHSA-2020:4431 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolaarch64 | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolppc64le | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftools390x | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolx86_64 | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix KASAN use-after-free Read in compute_effective_progs Syzbot found a Use After Free bug in compute_effective_progs(). The reproducer creates a number of BPF links, and causes a fault injected alloc to fail, while calling bpf_link_detach on them. Link detach triggers the link to be freed by bpf_link_free(), which calls __cgroup_bpf_detach() and update_effective_progs(). If the memory allocation in this function fails, the function restores the pointer to the bpf_cgroup_link on the cgroup list, but the memory gets freed just after it returns. After this, every subsequent call to update_effective_progs() causes this already deallocated pointer to be dereferenced in prog_list_length(), and triggers KASAN UAF error. To fix this issue don't preserve the pointer to the prog or link in the list, but remove it and replace it with a dummy prog without shrinking the table. The subsequent call to __cgroup_bpf_detach() or __cgroup_bpf_detach() will correct it.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached only via the bpf(2) syscall path for cgroup BPF link attach/detach (BPF_LINK_CREATE / BPF_LINK_DETACH or closing the link FD), which requires local process execution and is not reachable from the network stack. AC:L - The attacker fully controls link creation and detach timing, and can induce the required GFP_KERNEL allocation failure in compute_effective_progs() through memory pressure and large cgroup/program hierarchies; once the dangling pointer is planted, subsequent effective-prog updates reliably hit the UAF. PR:L - Triggering requires attaching a cgroup BPF link (CAP_NET_ADMIN via capable(), and CAP_BPF for most cgroup prog types other than CGROUP_SKB which can be loaded unprivileged), which is commonly available to container/admin-adjacent local users and is scored as Low rather than full root, consistent with similar cgroup BPF CVEs. UI:N - The attacker triggers the vulnerability entirely through their own bpf(2) and FD close operations; no separate victim action is required. S:U - Exploitation affects the host kernel's own memory and privilege boundaries (local privilege escalation within the same kernel), with no VM/IOMMU/sandbox authority boundary crossed. C:H - This is a use-after-free read of a freed bpf_cgroup_link (pl->link->link.prog); after heap reuse the attacker can obtain arbitrary kernel reads and install attacker-controlled pointers into the effective prog array. I:H - UAF of the link object enables heap spraying so a forged bpf_cgroup_link/prog pointer is written into cgroup effective program arrays, yielding arbitrary kernel write/control-flow hijack when those hooks run. A:H - The dangling link pointer is dereferenced on later update_effective_progs()/compute_effective_progs() calls and causes kernel oops/KASAN use-after-free crashes, so availability impact is High.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | af6eea57437a830293eab56246b6025cc7d46ee7 to < 3527e3cbb84d8868c4d4e91ba55915f96d39ec3d (affected · git)af6eea57437a830293eab56246b6025cc7d46ee7 to < 1f8ca9c40e6222ce431e9ba5dae3cccce8ef9443 (affected · git)af6eea57437a830293eab56246b6025cc7d46ee7 to < 6336388715afa419cc97d0255bda3bba1b96b7ca (affected · git)af6eea57437a830293eab56246b6025cc7d46ee7 to < be001f9da71eaa3b61e186fb88bde3279728bdca (affected · git)af6eea57437a830293eab56246b6025cc7d46ee7 to < 4c46091ee985ae84c60c5e95055d779fcd291d87 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.7 (affected)0 to < 5.7 (unaffected · semver)5.10.138 through 5.10.* (unaffected · semver)5.15.61 through 5.15.* (unaffected · semver)5.18.18 through 5.18.* (unaffected · semver)5.19.2 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/1f8ca9c40e6222ce431e9ba5dae3cccce8ef9443
- https://git.kernel.org/stable/c/3527e3cbb84d8868c4d4e91ba55915f96d39ec3d
- https://git.kernel.org/stable/c/4c46091ee985ae84c60c5e95055d779fcd291d87
- https://git.kernel.org/stable/c/6336388715afa419cc97d0255bda3bba1b96b7ca
- https://git.kernel.org/stable/c/be001f9da71eaa3b61e186fb88bde3279728bdca
Provider assertions
1Linux · cna
bpf: Fix KASAN use-after-free Read in compute_effective_progs
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5f931acc7e1d4e6f7d493e83657b818f3c36df6dec1c5e410d46023c17fd17b3
- Ingested
- 23 Sep 2026, 08:04:39 UTC
- Source record
- Official CVE record