CVE-2026-139620
bpf: Fix uninit read for non-fetch atomics on partially spilled slots
AI summary AI generated
An attacker with CAP_BPF can load an eBPF program that reads uninitialized stack bytes via non-fetch atomics on partially spilled slots, leaking kernel memory in the Linux kernel.
Mitigation
- Upgrade Linux to 5.16 or later.
Who should check
- Anyone running Linux >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 38a9243936ffec136ea1f2fc7747b7ebce190fa7; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < a2021a80256fe24a2146718033600b3a19fb1f24; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < d0abc2bedda3d901985d5be62cab8c16f796c35e; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 5a84b4424db8ae07f0ac682ab031c37a91dce50b; 8de8c4a25ed8924b09cf8cd542feea854d5ee5bf; 7b86f9ab56924ca56cde927d461165127b6b472e; >= 5.10.168, < 5.11; >= 5.15.93, < 5.16
- Anyone running Linux 5.16
Vulnerability facts
- Affected
- Linux >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 38a9243936ffec136ea1f2fc7747b7ebce190fa7; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < a2021a80256fe24a2146718033600b3a19fb1f24; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < d0abc2bedda3d901985d5be62cab8c16f796c35e; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 5a84b4424db8ae07f0ac682ab031c37a91dce50b; 8de8c4a25ed8924b09cf8cd542feea854d5ee5bf; 7b86f9ab56924ca56cde927d461165127b6b472e; >= 5.10.168, < 5.11; >= 5.15.93, < 5.16; Linux 5.16
- Fixed in
- Linux 38a9243936ffec136ea1f2fc7747b7ebce190fa7, Linux 5a84b4424db8ae07f0ac682ab031c37a91dce50b, Linux 5.11, Linux 5.16
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix uninit read for non-fetch atomics on partially spilled slots check_stack_read_fixed_off() skips partial spill checks for non-fetch atomics; the following prog can be loaded: 0: (b7) r1 = 1 ; R1=1 1: (63) *(u32 *)(r10 -8) = r1 ; R1=1 R10=fp0 fp-8=????1 2: (db) lock *(u64 *)(r10 -8) += r1 ; R1=1 R10=fp0 fp-8=mmmmmmmm 3: (79) r0 = *(u64 *)(r10 -8) ; R0=scalar() R10=fp0 fp-8=mmmmmmmm 4: (77) r0 >>= 32 ; R0=scalar(smin=0,smax=umax=0xffffffff,var_off=(0x0; 0xffffffff)) 5: (95) exit When test run: retval=4294967295 Note fp-8 is ????1 at #1, yet it becomes fp-8=mmmmmmmm after the non-fetching atomic add at #2; hence the high 32 bits are leaked. Fix by applying the partial load check; after the patch, the prog is rejected: Verification failed: Memory Safety: Uninitialized stack read Reason: This rejected read uses 8 bytes at stack offset -8, but byte 4 in that range is uninitialized on this path. Programs loaded with CAP_PERFMON can be allowed to read uninitialized stack bytes, but this program is being rejected without that allowance. At: ... 0 | (b7) r1 = 1 1 | (63) *(u32 *)(r10 -8) = r1 >>> 2 | (db) lock *(u64 *)(r10 -8) += r1 3 | (79) r0 = *(u64 *)(r10 -8) 4 | (77) r0 >>= 32 This affects CAP_BPF only.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 38a9243936ffec136ea1f2fc7747b7ebce190fa7; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < a2021a80256fe24a2146718033600b3a19fb1f24; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < d0abc2bedda3d901985d5be62cab8c16f796c35e; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 5a84b4424db8ae07f0ac682ab031c37a91dce50b; 8de8c4a25ed8924b09cf8cd542feea854d5ee5bf; 7b86f9ab56924ca56cde927d461165127b6b472e; >= 5.10.168, < 5.11; >= 5.15.93, < 5.16 | — | cvelist |
| Linux | 5.16 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139620. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139620.md Affected: Linux >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 38a9243936ffec136ea1f2fc7747b7ebce190fa7; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < a2021a80256fe24a2146718033600b3a19fb1f24; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < d0abc2bedda3d901985d5be62cab8c16f796c35e; >= 354e8f1970f821d4952458f… Fixed in: Linux 38a9243936ffec136ea1f2fc7747b7ebce190fa7, Linux 5a84b4424db8ae07f0ac682ab031c37a91dce50b, Linux 5.11, Linux 5.16 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-139620 being exploited?
There is no confirmed exploitation: CVE-2026-139620 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139620?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139620?
Linux >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 38a9243936ffec136ea1f2fc7747b7ebce190fa7; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < a2021a80256fe24a2146718033600b3a19fb1f24; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < d0abc2bedda3d901985d5be62cab8c16f796c35e; >= 354e8f1970f821d4952458f77b1ab6c3eb24d530, < 5a84b4424db8ae07f0ac682ab031c37a91dce50b; 8de8c4a25ed8924b09cf8cd542feea854d5ee5bf; 7b86f9ab56924ca56cde927d461165127b6b472e; >= 5.10.168, < 5.11; >= 5.15.93, < 5.16; Linux 5.16.
Is there a fix for CVE-2026-139620?
Yes. Fixed in Linux 38a9243936ffec136ea1f2fc7747b7ebce190fa7, Linux 5a84b4424db8ae07f0ac682ab031c37a91dce50b, Linux 5.11, Linux 5.16. Upgrade Linux to 5.16 or later.
How do I check if I'm affected by CVE-2026-139620?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |