CVE-2026-139635
bpf: Keep target extended until its last freplace link detaches
Check your servers for CVE-2026-139635
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-139635 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: Keep target extended until its last freplace link detaches
The is_extended / prog_array_member_cnt protocol introduced by commit d6083f040d5d ("bpf: Prevent tailcall infinite loop caused by freplace") keeps a prog extended by a freplace program out of prog_array maps, and vice versa: once a tail call re-enters an extended subprogram, its tail_call_cnt resets on every execution and the loop never terminates.
But is_extended is a plain boolean, while one target prog can carry several freplace links at the same time, one on its entry and one on a global subprogram. __bpf_trampoline_unlink_prog() cleared is_extended whenever *any* freplace link detached, so detaching one of two links re-armed the unbounded loop through the remaining one.
Replace the is_extended boolean with a count of the freplace links attached to each target prog, so the target stays extended until its last link detaches. Also rename bpf_freplace_check_tgt_prog() to bpf_freplace_link_tgt_prog(), as the helper has never been a pure check: it reserves the target prog on success.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 987aa730bad3e1ef66d9f30182294daa78f6387d, before 49e6b0de165005abfbd167ba5e62076a4898b85e affected from d6083f040d5d8f8d748462c77e90547097df936e, before 0743d6510161be50143e52cb91fccd4868f7f048 affected from d6083f040d5d8f8d748462c77e90547097df936e, before 6403c2d2503edda61c24b75b178b62b558232a59 affected from d6083f040d5d8f8d748462c77e90547097df936e, before c43c348a84460b003fa757dd43d8c89848ae220d affected 272f92998cbec9e12fea8ef28f48d6b1bc625a34 affected f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6 affected from 6.12.5, before 6.12.120 affected from 6.1.191, before 6.2 affected from 6.6.160, before 6.7
Other versions: unaffected
|
| Linux |
affected 6.13 unaffected before 6.13 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-139635 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139635
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-139635
trivy image --scanners vuln IMAGE | grep CVE-2026-139635
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/49e6b0de165005abfbd167ba5e62076a4898b85e git.kernel.org
- https://git.kernel.org/stable/c/0743d6510161be50143e52cb91fccd4868f7f048 git.kernel.org
- https://git.kernel.org/stable/c/6403c2d2503edda61c24b75b178b62b558232a59 git.kernel.org
- https://git.kernel.org/stable/c/c43c348a84460b003fa757dd43d8c89848ae220d git.kernel.org
Source: the record CVE-2026-139635 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