CVE-2026-139661
bpf, lsm: Reject writes into the BPF LSM program context
Check your servers for CVE-2026-139661
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-139661 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, lsm: Reject writes into the BPF LSM program context
The verifier types a load from a tracing-style context by its offset alone: btf_ctx_access() looks the offset up in the attach hook's prototype, and check_mem_access() stamps the resulting type onto the destination register. Nothing tracks what the slot actually holds. That is sound only as long as the context is read-only, and for BPF LSM it is not. lsm_verifier_ops wires ->is_valid_access() straight to btf_ctx_access(), which never looks at enum bpf_access_type, so a store into the context passes verification. Every other user of the helper either goes through bpf_tracing_btf_ctx_access() or open-codes the same type != BPF_READ test first; BPF LSM is the only one that does neither.
A program can therefore store a scalar of its choosing into a context slot, read the slot back, and get a register the verifier believes is a trusted pointer of the hook's argument type. Handing that to a kfunc or helper which dereferences a trusted argument turns it into an arbitrary kernel access. Route BPF LSM through bpf_tracing_btf_ctx_access() like everyone else.
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.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fc611f47f2188ade2b48ff6902d5cce8baac0c58, before 6b810a303806b3a48c0d8cec99468956d15b8069 affected from fc611f47f2188ade2b48ff6902d5cce8baac0c58, before 23fd50ed3ae8ff501e90db8b253ee05992a0b563 affected from fc611f47f2188ade2b48ff6902d5cce8baac0c58, before ad74f678b76e9460193afc1683ba50ae5d2f6400 affected from fc611f47f2188ade2b48ff6902d5cce8baac0c58, before d37ac6eda751255a96a46737abbb526ada2a1017 affected from fc611f47f2188ade2b48ff6902d5cce8baac0c58, before ab9f32e30ac4087a72070d8cc33809c02797e8ef affected from fc611f47f2188ade2b48ff6902d5cce8baac0c58, before 63fa671681dc8f10d1f21032bc6da1c3398c782b affected from fc611f47f2188ade2b48ff6902d5cce8baac0c58, before c42da1d3ba9d5067cf3f0676b98bcb3f5f9e3ce1
Other versions: unaffected
|
| Linux |
affected 5.7 unaffected before 5.7 unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 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-139661 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139661
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-139661
trivy image --scanners vuln IMAGE | grep CVE-2026-139661
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/6b810a303806b3a48c0d8cec99468956d15b8069 git.kernel.org
- https://git.kernel.org/stable/c/23fd50ed3ae8ff501e90db8b253ee05992a0b563 git.kernel.org
- https://git.kernel.org/stable/c/ad74f678b76e9460193afc1683ba50ae5d2f6400 git.kernel.org
- https://git.kernel.org/stable/c/d37ac6eda751255a96a46737abbb526ada2a1017 git.kernel.org
- https://git.kernel.org/stable/c/ab9f32e30ac4087a72070d8cc33809c02797e8ef git.kernel.org
- https://git.kernel.org/stable/c/63fa671681dc8f10d1f21032bc6da1c3398c782b git.kernel.org
- https://git.kernel.org/stable/c/c42da1d3ba9d5067cf3f0676b98bcb3f5f9e3ce1 git.kernel.org
Source: the record CVE-2026-139661 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