The BPF verifier has an optimisation for “fastcall” helpers: when clang has spilled registers to the stack around a call that does not clobber them, the verifier deletes the spill and fill and lowers the subprogram’s stack depth “so that their slots are no longer part of the frame.” The kernel CNA record says this “is only safe if nothing else accesses those slots or any slot below them”, that check_fastcall_stack_contract() enforces it on the four stack load and store paths, and that “two kinds of access escape it”: stack buffers passed to helpers and kfuncs, validated elsewhere, and a callee’s read of a caller’s stack through a pointer. In the record’s example a program “is accepted with a stack depth of 0 instead of 64”, after which “the JIT reserves a frame that does not contain the buffer, and the helper reads or writes live kernel stack below the program’s frame.” Red Hat rates it Important at 7.8. On any host where accounts other than root can load BPF programs, upgrade to 6.12.120, 6.18.66, 7.3.6 or later and reboot; where unprivileged BPF is off, the flaw is reachable only with CAP_BPF.
CVE-2026-139629 at a glance.
| Component | Linux kernel, BPF verifier (kernel/bpf/verifier.c), functions check_fastcall_stack_contract(), check_stack_range_initialized(), check_stack_read_fixed_off() and check_stack_access_within_bounds(); built in, no module |
| Affected versions | from 5b5f51bff1b6, the 6.12 commit that added fastcall inlining: 6.12 before 6.12.120, 6.18 before 6.18.66, 7.3 before 7.3.6 and 7.4 before 7.4-rc1; 6.1, 6.6 and everything older do not have the optimisation |
| Fixed in | mainline 7.4-rc1 (commit ec3a69e7, “Check fastcall stack contract once for all stack accesses”: the check moves into check_stack_access_within_bounds(), through which “every stack access first goes”, and the calls on the read and write paths are dropped) and stable 6.12.120, 6.18.66, 7.3.6; four commits in the record |
| Severity | Red Hat Important, CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, draft, CWE-787 out-of-bounds write), bug 2587157; the kernel CNA gives no score and NVD (Received, 30 November) carries none; Ubuntu Medium; SUSE could not be read on 2 December 2026 |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00200 (10th percentile) on 2 December 2026 |
| Who is exposed | Any host on an affected kernel where a user can load BPF programs: with kernel.unprivileged_bpf_disabled at 0 that is every local account, and the record’s first example is a program accepted “without CAP_PERFMON”; with it at 1 or 2, the default on RHEL and most distributions, it is accounts holding CAP_BPF, which container runtimes and observability agents often hold. Red Hat’s statement: default RHEL “disables unprivileged eBPF”, so exploitation “requires elevated privileges such as CAP_BPF or CAP_SYS_ADMIN”, and RHEL 9 and 10 kernel are affected, RHEL 8 and the 9 real-time kernel are not |
| Published | CVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026 |
What it is
The verifier’s job is to prove that a BPF program cannot touch memory it should not, and the stack frame is part of that proof: the program may use the slots the verifier has counted, and the JIT reserves exactly that much. The fastcall rewrite deletes a spill and fill pair around a helper that promises not to clobber the registers, and then counts the frame as if those slots had never existed. The contract check exists to cancel the rewrite if anything else in the subprogram reads or writes those slots or anything beneath them. The record describes two ways an access could reach that region without the check running: a stack buffer handed to a helper or kfunc, which is validated by check_stack_range_initialized() rather than the four load and store paths, and a callee reading its caller’s stack through a pointer, where the check was applied to the wrong frame.
The example in the record spills a register, calls bpf_get_smp_processor_id, fills it back, then passes r10 - 64 as an eight-byte buffer to bpf_skb_load_bytes. The spill and fill are removed, the frame shrinks to zero, and the helper writes eight bytes at sixty-four below a frame the JIT did not reserve: live kernel stack belonging to whatever called into the program. The second example has a callee read a caller’s spill slot that the verifier still believes holds a known constant, so the verifier reasons about a value that is in fact uninitialised kernel stack. The record notes that an earlier change, limiting raw-mode buffers to programs that may read uninitialised stack, is what removed the indirect check that helper outputs had enjoyed in programs without CAP_PERFMON.
The fix moves the contract check into check_stack_access_within_bounds(), which every stack access passes through and which is “the only place where a frame’s stack depth grows”, so it runs once per access for loads, stores, helper buffers and the dynptr, iterator and IRQ-flag slots alike; zero-sized buffers leave the rewrite in place. The optimisation arrived in 6.12, so only three stable series needed the fix. git.kernel.org refuses automated readers, so the diff is described from the CNA’s copy of the commit message.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The verifier is built into every kernel; the exposure is decided by the sysctl and by who holds CAP_BPF.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page | — |
| Debian | bookworm (6.1.176-1) not affected (“vulnerable code not present”); trixie (6.12.117-1, security 6.12.118-1) vulnerable; forky and sid (7.3.6-1) fixed; no DSA | unstable 7.3.6-1 |
| Ubuntu | Medium; the linux package is needs evaluation on every release from 14.04 to 26.10 on 2 December 2026 (page updated 1 December), nothing released | nothing on 2 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.8 (bug 2587157, CWE-787); kernel affected in RHEL 9 and 10 and in the OpenShift 4 RHEL 9 and OpenShift 5 images; RHEL 9 kernel-rt, RHEL 8 and earlier not affected; no errata on 2 December 2026 | — |
| openSUSE/SLE | Not consulted: suse.com refused the automated reader on 2 December 2026 (client error) | — |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply | 6.12.120 / 6.18.66 / 7.3.6 or later |
How to check
Is the running kernel in range, can unprivileged users load BPF, and which processes hold the capability that reaches the verifier anyway. The second and third questions decide how far the flaw extends on a given host.
# 1. the running kernel: affected from 6.12; fixed in 6.12.120, 6.18.66, 7.3.6 or later
uname -r
# 2. can unprivileged users load BPF programs (0 = yes, 1 = no and locked, 2 = no until changed)
sysctl kernel.unprivileged_bpf_disabled
# 3. which running processes hold CAP_BPF or CAP_SYS_ADMIN (bits 39 and 21)
for p in /proc/[0-9]*; do c=$(awk '/^CapEff/{print $2}' "$p/status" 2>/dev/null); [ -n "$c" ] && \
python3 -c "import sys;v=int('$c',16);print('$p',open('$p/comm').read().strip()) if v>>39&1 or v>>21&1 else None" 2>/dev/null; done | sort -u | head -40
# 4. BPF programs loaded now, and by whom (bpftool from the linux-tools package)
bpftool prog list 2>/dev/null | grep -E '^[0-9]+:|loaded_at|uid' | head -40A kernel before 6.12 does not have the fastcall rewrite and the page does not apply, which is why Debian bookworm and RHEL 8 are not affected. On an affected kernel, step 2 at 0 is the fully exposed case, any user; at 1 or 2 the reach is the list in step 3, which on a typical host is root, the container runtime and whatever observability agent loads its own programs, each of which is then a path from that service to arbitrary kernel stack. Step 4 shows what is loaded today, not what could be.
How to fix it
Install the fixed kernel and reboot; the verifier is built in and runs on every program load until the machine boots the new image. Until then, the sysctl removes the unprivileged path.
# Debian forky / sid (7.3.6-1) carry the fix; trixie: watch the tracker row above; bookworm is not affected
apt update && apt install linux-image-amd64 && systemctl reboot# RHEL 9 / 10, Rocky, Alma: affected, no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot# Ubuntu: needs evaluation on 2 December 2026; once the linux package is released
apt update && apt install linux-generic && systemctl reboot# Stop-gap: close the unprivileged path until the reboot (2 = off, can be re-enabled; 1 = off until next boot)
sysctl -w kernel.unprivileged_bpf_disabled=2Disabling unprivileged BPF is the right setting on almost every host regardless of this flaw, and it is what Red Hat’s score assumes. It leaves CAP_BPF holders exposed, which the sysctl cannot change. What not to do: do not take CAP_BPF away from a container runtime or a tracing agent as a mitigation without knowing what they load, since both will fail in ways that look like unrelated outages; and do not rely on the JIT being disabled, because the frame size is decided by the verifier before the JIT runs and the interpreter uses the same number.
Sources
- CVE-2026-139629 at CVE.org — the kernel CNA record: the fastcall rewrite and the stack contract, the two kinds of access that escaped it, the two example programs, the raw-mode change that removed the indirect check, the single-point fix, the version ranges (30 November 2026)
- Fix commit ec3a69e7 (mainline 7.4-rc1, the commit Debian cites) and the stable backports 6acd70ce, 31594d48, f19a6264; git.kernel.org refuses automated readers, so the change is described from the CNA record and the trackers
- NVD entry — Received on 30 November 2026; no CVSS metric, CWE or CPE on 2 December 2026
- Distribution trackers: Debian (bookworm not affected, trixie vulnerable, unstable fixed in 7.3.6-1) · Red Hat (Important 7.8, bug 2587157, CWE-787; RHEL 9 and 10 kernel affected, 9 kernel-rt and 8 not; the statement on unprivileged eBPF; package states read from the security-data API) · Ubuntu (Medium, needs evaluation on every release, page updated 1 December) · SUSE (refused the automated reader on 2 December 2026)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00200 (percentile 0.104) on 2 December 2026
Related reading
- CVE-2026-139320: Linux kernel BPF JSET 32-bit — rated the same day, the other verifier reasoning flaw of this burst
- CVE-2026-139307: Linux kernel BPF dev-bound netdev UAF — the BPF entry from the previous twelve
- CVE-2026-139316: Linux kernel seg6 BPF SRH validation — a BPF helper trusting what the program gave it
- CVE-2026-99801: Linux kernel io_uring BPF ctx setsockopt — another verifier-side bound that did not hold
- The Kernel — what the verifier proves about a program’s stack, and why CAP_BPF is the capability that matters on hosts with unprivileged BPF off
This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

