Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CONFIG_PREEMPT requirement plus race timing precision justifies AC:H over the input's AC:L; PR:L reflects BPF loading capability requirement.
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
Lifecycle Timeline
5DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
bpf: Disable preemption in __bpf_get_stack
get_perf_callchain() returns a per-CPU perf_callchain_entry buffer and releases its recursion slot via put_callchain_entry() before returning, so nothing keeps the entry reserved while __bpf_get_stack() consumes it below.
A preemptible BPF program (e.g. a non-sleepable raw tracepoint program on a PREEMPT kernel, which runs under migrate_disable() but not preempt_disable()) can be scheduled out between obtaining the entry and the copy. Another task scheduled on the same CPU then reuses the same per-CPU buffer and overwrites trace->nr with a larger value. copy_len is then computed from the inflated trace->nr and can exceed the caller's buffer, causing an out-of-bounds write in the memcpy() and in the build_id path.
The rcu_read_lock() taken here alone does not prevent this. It is only taken on the may_fault path, and under CONFIG_PREEMPT_RCU it does not disable preemption; it merely keeps perf's callchain buffer array alive (freed via call_rcu()) and does nothing to stop another task from reusing the entry.
Disable preemption around obtaining the callchain entry and copying it into the caller's buffer, so the entry cannot be reused underneath us and trace->nr stays bounded by max_depth. Build ID resolution may fault and is therefore deferred until after preemption is re-enabled; by then the instruction pointers have already been copied into buf, so it operates only on that private copy. Note, preempt_disable() also subsumes the buffer-lifetime guarantee the rcu_read_lock() provided, since a preempt-disabled section is an RCU read-side critical section for the callchain buffers' call_rcu() reclaim.
[ changed Fixes: commit ]
AnalysisAI
Out-of-bounds kernel memory write in Linux kernel BPF stack unwinding (__bpf_get_stack) exposes CONFIG_PREEMPT systems to local privilege escalation. On fully preemptible kernels, a non-sleepable BPF raw tracepoint program runs under migrate_disable() but not preempt_disable(), creating a scheduler preemption window between per-CPU callchain buffer release and consumer memcpy; a concurrent task can overwrite trace->nr, inflating copy_len past the caller's buffer boundary. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | Exploitation requires all of the following conditions simultaneously: the kernel must be compiled with CONFIG_PREEMPT=y (full preemption enabled - standard for desktop/real-time kernels, explicitly disabled or set to VOLUNTARY in most server distributions including RHEL, SLES, and Ubuntu Server); the attacker must possess the ability to load BPF programs, requiring either CAP_BPF capability, CAP_SYS_ADMIN, or unprivileged BPF enabled (kernel.unprivileged_bpf_disabled=0, which is the non-default on Debian 11+, Ubuntu 20.04+, and most hardened distributions); and specifically, a non-sleepable raw tracepoint BPF program that invokes bpf_get_stack() must be loadable. … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | The provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N, 7.8) rates attack complexity as Low, which is optimistic given the narrow scheduler preemption race window required - reliably winning the window between `put_callchain_entry()` returning and the subsequent `trace->nr` read demands precise timing, making AC:H a more accurate characterization. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | Full exploit scenario with step-by-step reproduction available after sign-in. |
| Remediation | Vendor-released patches are available across all active Linux stable branches. … Detailed patch versions, workarounds, and compensating controls in full report. |
Recommended ActionAI
Within 24 hours, identify all Linux systems in production and identify which use kernel versions 4.18 through 6.12.108, 6.18.49, 7.2.3 and earlier, and audit which are compiled with CONFIG_PREEMPT enabled. …
Sign in for detailed remediation steps and compensating controls.
Threat intelligence, references, and detailed analysis are available after sign-in.
Same technique Buffer Overflow
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-76492
GHSA-9w72-pq5v-mqv8