CVE-2026-139286
bpf: Zero-extend the index in inlined bpf_get_func_arg()
Check your servers for CVE-2026-139286
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-139286 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: Zero-extend the index in inlined bpf_get_func_arg()
bpf_get_func_arg() takes a u32 index, but the inlined expansion compared only the low 32 bits of R2 with the argument count and then shifted the full 64-bit register to compute the context address. R2 is ARG_ANYTHING, so nothing guarantees that its upper bits are zero: an index of 1ULL << 32 passes the bounds check as index zero while the load is performed at ctx + (1ULL << 35).
Shift the index as a 32-bit value. When the 32-bit bounds check passes, the low 32 bits of R2 are below R0, and R0 is at most 255: the trampoline arm masks the argument count with 0xFF and the raw_tp arm uses the BTF argument count minus one, which the verifier caps at MAX_BPF_FUNC_ARGS. The 3-bit shift therefore cannot overflow and it clears the upper bits of the register. Widening the comparison instead would reject indices whose low 32 bits are valid. The check itself is unchanged, so this cannot change which programs are accepted, only the address that is computed.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f92c1e183604c20ce00eb889315fdaa8f2d9e509, before c463072e5da49b210a7e0ead600feea6a432a7fc affected from f92c1e183604c20ce00eb889315fdaa8f2d9e509, before 7e3a5e1e3d57034d11e7aba5146daf3e8d460864 affected from f92c1e183604c20ce00eb889315fdaa8f2d9e509, before 85f8579916b99cdd31788b9dfd241d0e9752f5dc affected from f92c1e183604c20ce00eb889315fdaa8f2d9e509, before 1c1dda9ba9f3af9cd511a197dcc86de2465d8fe5
Other versions: unaffected
|
| Linux |
affected 5.17 unaffected before 5.17 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-139286 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139286
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-139286
trivy image --scanners vuln IMAGE | grep CVE-2026-139286
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/c463072e5da49b210a7e0ead600feea6a432a7fc git.kernel.org
- https://git.kernel.org/stable/c/7e3a5e1e3d57034d11e7aba5146daf3e8d460864 git.kernel.org
- https://git.kernel.org/stable/c/85f8579916b99cdd31788b9dfd241d0e9752f5dc git.kernel.org
- https://git.kernel.org/stable/c/1c1dda9ba9f3af9cd511a197dcc86de2465d8fe5 git.kernel.org
Source: the record CVE-2026-139286 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