The BPF verifier learns facts from conditional jumps so it can prove a program stays in bounds, and the kernel CNA record describes where that reasoning goes wrong for a bit-test branch on a 32-bit kernel: “In the branch of a BPF_JSET which is taken, the verifier can learn something about the register only if the mask has a single bit: then this bit is set. regs_refine_cond_op() tests this with is_power_of_2(val) and then ORs val into var_off. val is a u64, but is_power_of_2() takes an unsigned long. On a 32-bit kernel it only sees the lower half of the mask.” A mask like 0xffffffff80000000 then looks like a single bit, “so the verifier takes all 33 bits for set at l, while the branch is taken if any of them is”, and from there “the program can access memory outside of the map value”. The CNA and Red Hat score it 7.8; “Only 32-bit kernels are affected.” On a 32-bit kernel that allows BPF program loading, upgrade to a kernel at or above 6.12.119, 6.18.65 or 7.3.6; a 64-bit kernel is unaffected and needs no action for this flaw.
CVE-2026-139320 at a glance.
| Component | Linux kernel, the BPF verifier (kernel/bpf/verifier.c): the single-bit test in regs_refine_cond_op() for a BPF_JSET branch |
| Affected versions | mainline 5.0 up to 7.4-rc1 (from commit 960ea056, “bpf: verifier: teach the verifier to reason about the BPF_JSET instruction”), on 32-bit kernels only; 6.12.x below 6.12.119, 6.18.x below 6.18.65, 7.3.x below 7.3.6 |
| Fixed in | mainline 7.4-rc1 (commit ee4f44e0, the one Debian cites) and stable 6.12.119, 6.18.65, 7.3.6. The fix counts “the bits of the whole value” instead of calling is_power_of_2() on a truncated one; kernel/bpf/verifier.c +1/−1 |
| Severity | Kernel CNA CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD shows the CNA metric; Red Hat Important, 7.8 on the same vector (draft, CWE-823, out-of-bounds pointer offset), bug 2586937 “Out-of-bounds memory access via improper BPF jump mask verification on 32-bit systems”; Ubuntu Medium, no score |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00186 (9th percentile) on 1 December 2026 |
| Who is exposed | A 32-bit kernel (i386, 32-bit arm, 32-bit mips and the like) on which a process can load BPF programs; with unprivileged BPF enabled that is any user, otherwise a process with CAP_BPF or CAP_SYS_ADMIN. Red Hat’s statement: “exposure is limited because unprivileged eBPF is disabled by default”, and “supported Red Hat Enterprise Linux kernels are deployed exclusively on 64-bit architectures, whereas this flaw requires a 32-bit kernel”. A 64-bit kernel is not affected: “unsigned long holds the whole mask, and this patch changes nothing” |
| Published | CVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026 |
What it is
When the verifier sees if r1 & mask goto l, a BPF_JSET branch, it can learn something only in the taken branch and only when the mask is a single bit: if exactly one bit is set in the mask and the branch is taken, that bit must be set in the register. regs_refine_cond_op() checks “single bit” with is_power_of_2(val), then records the bit as known-set in the register’s var_off. The register value and the mask are 64-bit, but is_power_of_2() takes an unsigned long, which on a 32-bit kernel is 32 bits wide, so the test examines only the low half of the mask.
A mask such as 0xffffffff80000000 has its low half equal to 0x80000000, a single bit, so the verifier treats the whole mask as a single bit and records all of its set bits, 33 of them, as known-set in the register, when the branch is actually taken if any of them is set. The record’s i386 log shows it concretely: for r6 = bpf_get_prandom_u32() << 31 the verifier believes r6 >> 63 is 1, “When the program runs, r6 >> 63 is 0.” From then on the verifier’s idea of the register disagrees with reality, and it will accept, for instance, a map offset it derives from those “known” bits and believes constant, so the program reads or writes outside the map value, the record’s CWE-823.
The fix, by Josef Bacik and committed by Alexei Starovoitov as patch 8 of a 17 October verifier series, counts the bits of the whole 64-bit value rather than calling a long-width helper on it. The record is explicit that this is a 32-bit-only flaw: on a 64-bit kernel unsigned long already holds the whole mask and the patch changes nothing. Red Hat marks RHEL 8, 9 and 10 affected (the code is present) yet notes that RHEL ships only 64-bit kernels, so the exposure on RHEL is nil; the practical risk is on 32-bit builds that allow program loading. git.kernel.org refuses automated readers, so the commit was read on GitHub.
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 flaw is 32-bit-only, so the filter is the architecture of the running kernel and whether BPF programs can be loaded.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026 | — |
| Debian | bookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSA. Debian’s 32-bit ports (i386, armel, armhf) are the ones that matter here | unstable 7.3.6-1 |
| Ubuntu | Medium, no Ubuntu CVSS; linux needs evaluation in every supported release; note “introduced by 960ea05, fixed by ee4f44e”; no USN | nothing released on 2 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.8 (bug 2586937, CWE-823); RHEL 8, 9 and 10 kernel and kernel-rt and the OpenShift images affected (code present), RHEL 6 and 7 not affected; the statement notes RHEL ships only 64-bit kernels, so the flaw “requires a 32-bit kernel” | nothing released 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.119 / 6.18.65 / 7.3.6 or later |
How to check
Two questions, in order: is the running kernel 32-bit, and if so can BPF programs be loaded here. A 64-bit kernel is not affected and the first command ends the enquiry for most hosts.
# 1. is the kernel 32-bit (the only affected case) and which version
uname -m # i686/i386/armv7l/mips = 32-bit; x86_64/aarch64/ppc64le = 64-bit, NOT affected
uname -r
# 2. on a 32-bit kernel: can an unprivileged process load BPF programs
sysctl kernel.unprivileged_bpf_disabled 2>/dev/null # 0 = unprivileged BPF allowed; 1 or 2 = restricted
getcap -r /usr/sbin /usr/bin 2>/dev/null | grep -E 'cap_bpf|cap_sys_admin'
zcat /proc/config.gz 2>/dev/null | grep -E 'CONFIG_BPF_SYSCALL|CONFIG_BPF_JIT' || grep -E 'CONFIG_BPF_SYSCALL' /boot/config-$(uname -r)A host whose uname -m reports a 64-bit architecture is not affected; the mask fits in unsigned long and the verifier reasons correctly. On a 32-bit kernel the question is who can load programs: with kernel.unprivileged_bpf_disabled set to 1 or 2 only a process holding CAP_BPF or CAP_SYS_ADMIN can, which narrows the attacker to privileged code, while 0 lets any local user try. There is no clean run-time log signature short of a crash: a program that the verifier wrongly accepted shows up as a KASAN out-of-bounds access in BPF execution, or as memory corruption with no obvious cause on a 32-bit box that loads BPF.
How to fix it
Install the fixed kernel and reboot on affected 32-bit systems. Debian forky and sid had 7.3.6-1; its 32-bit ports take the fix with it. The record lists no mitigation, but restricting unprivileged BPF narrows who can reach it.
# Debian 32-bit ports (i386, armel, armhf), forky / sid; and once a bookworm/trixie update names this CVE
apt update && apt install linux-image-686-pae && systemctl reboot # i386 example; arm images similarly
uname -m; uname -r# Ubuntu, RHEL family, SUSE 32-bit builds: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf update kernel && systemctl reboot# Interim narrowing on a 32-bit host: keep unprivileged processes from loading BPF programs
sysctl -w kernel.unprivileged_bpf_disabled=1
printf 'kernel.unprivileged_bpf_disabled = 1\n' > /etc/sysctl.d/90-bpf.confSetting kernel.unprivileged_bpf_disabled removes the unprivileged path and is sensible on any host that does not need unprivileged BPF, but it is not a fix: a process with CAP_BPF can still load the program the verifier mis-analyses, so a privileged daemon that loads attacker-influenced programs stays exposed. What not to do: do not spend effort on this for a 64-bit server, which is not affected; and do not read Red Hat’s “affected” on RHEL 8/9/10 as meaning a RHEL server is at risk, since RHEL ships no 32-bit kernel and the flaw needs one. On a real 32-bit deployment the fixed kernel is the answer.
Sources
- CVE-2026-139320 at CVE.org — the kernel CNA record: the “is_power_of_2() takes an unsigned long”, “only sees the lower half of the mask” and “Only 32-bit kernels are affected” sentences, the i386 verifier log, the git range,
kernel/bpf/verifier.c(30 November 2026) - Fix commit ee4f44e0 (mainline, 7.4-rc1) and the stable backports in the record; git.kernel.org refuses automated readers, so it was read on GitHub: Josef Bacik, committed by Alexei Starovoitov, patch 8 of the 17 October series,
Fixes:960ea056,verifier.c+1/−1 - NVD entry — Received on 30 November 2026; shows the CNA’s 7.8 as its only metric, no NVD score or CWE on 2 December
- Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium; needs evaluation) · Red Hat (Important 7.8, RHEL 8/9/10 affected, bug 2586937, 64-bit-only note) · SUSE (not reachable on 2 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00186 (percentile 0.086) on 1 December 2026
Related reading
- CVE-2026-139219: Linux kernel counts socket-buffer references in sixteen bits, so about 65,537 clones make a shared packet buffer look private and it is freed while clones still point at it — the same day’s set, another half-width read
- CVE-2026-139120: Linux kernel block layer sets up a new request queue without the tag-set lock — the highest-scored record of the same burst
- CVE-2026-99661: Linux kernel GUP-fast turns a page count into bytes without checking for overflow, so a 32-bit host pins the wrong range — another 32-bit-only arithmetic flaw
- CVE-2026-99896: Linux kernel CephFS client lets an oversized readdir reply count wrap on 32-bit and write past its buffer — the 32-bit case again, in a filesystem client
- CVE-2026-114942: Java Vector API mask index check narrows a 64-bit offset and lets out-of-bounds access through — a mask-index width bug outside the kernel
- The Kernel — what the BPF verifier proves, and why a wrong proof is a memory bug
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.

