CVE-2026-139620
bpf: Fix uninit read for non-fetch atomics on partially spilled slots
Check your servers for CVE-2026-139620
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139620 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 354e8f1970f821d4952458f77b1ab6c3eb24d530, before 38a9243936ffec136ea1f2fc7747b7ebce190fa7 affected from 354e8f1970f821d4952458f77b1ab6c3eb24d530, before a2021a80256fe24a2146718033600b3a19fb1f24 affected from 354e8f1970f821d4952458f77b1ab6c3eb24d530, before d0abc2bedda3d901985d5be62cab8c16f796c35e affected from 354e8f1970f821d4952458f77b1ab6c3eb24d530, before 5a84b4424db8ae07f0ac682ab031c37a91dce50b affected 8de8c4a25ed8924b09cf8cd542feea854d5ee5bf affected 7b86f9ab56924ca56cde927d461165127b6b472e affected from 5.10.168, before 5.11 affected from 5.15.93, before 5.16
Other versions: unaffected
|
| Linux |
affected 5.16 unaffected before 5.16 unaffected from 6.12.120 up to and including 6.12.* unaffected from 6.18.66 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139620 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139620
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139620
trivy image --scanners vuln IMAGE | grep CVE-2026-139620
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/38a9243936ffec136ea1f2fc7747b7ebce190fa7 git.kernel.org
- https://git.kernel.org/stable/c/a2021a80256fe24a2146718033600b3a19fb1f24 git.kernel.org
- https://git.kernel.org/stable/c/d0abc2bedda3d901985d5be62cab8c16f796c35e git.kernel.org
- https://git.kernel.org/stable/c/5a84b4424db8ae07f0ac682ab031c37a91dce50b git.kernel.org
Source: the record CVE-2026-139620 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse