CVE-2026-139629: bpf: Check fastcall stack contract once for all stack accesses
bpf: Check fastcall stack contract once for all stack accesses
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Does the demonstrated issue require CAP_PERFMON?
The example described in the fix is accepted without CAP_PERFMON. It uses stack storage around a fastcall-related call and then passes a stack buffer to bpf_skb_load_bytes.
What BPF program pattern is relevant when assessing exposure?
The affected pattern involves a verifier-inlined bpf_fastcall helper or kfunc whose spill/fill stack slots are removed, while a stack buffer in that region is passed to a helper or kfunc. The missing validation occurred in check_stack_range_initialized(), which handles stack buffers supplied to helpers and kfuncs.
What is the potential consequence if the rewrite is incorrectly allowed?
The JIT can reserve a stack frame that does not include the buffer. A helper can then read from or write to live kernel stack below the BPF program's frame.