
Cloud Vulnerability DB
A community-led vulnerabilities database
In the Linux kernel, a vulnerability (CVE-2021-47608) was discovered in the BPF subsystem that allows unprivileged users to leak kernel pointers. The issue was introduced by a change in commit 37086bfdc737 regarding check_mem_access() handling in atomic fetch operations. The vulnerability affects Linux kernel versions from 5.12 up to (excluding) 5.15.11, and version 5.16-rc1 through 5.16-rc5 (NVD).
The vulnerability stems from a bug in the handling of atomic fetch operations where an atomic fetch/and with -1 on a stack destination holding a spilled pointer would migrate the spilled register type into a scalar. Since scalar types are different from pointer types, this allows the value to be exported out of the program by dumping it into a map value. The original XADD implementation prevented this through a double call to check_mem_access() with BPF_READ and BPF_WRITE, using -1 as a placeholder value (Kernel Patch). The vulnerability has a CVSS v3.1 Base Score of 5.5 MEDIUM (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) (NVD).
The vulnerability allows unprivileged users to leak kernel pointer addresses, which could potentially be used to bypass kernel address space layout randomization (KASLR) and facilitate other attacks (NVD).
The vulnerability can be exploited by unprivileged local users through specially crafted BPF programs that manipulate atomic fetch operations on stack destinations containing spilled pointers (Kernel Patch).
The issue has been fixed by modifying the BPF_FETCH case to initially check the BPF_READ case via check_mem_access() with -1 as register, followed by the actual load case with non-negative load_reg to propagate stack bounds to registers. Users should upgrade to Linux kernel version 5.15.11 or later, or apply the provided patch (Kernel Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."