CVE-2026-139305
bpf: Count sleepable callbacks as sleepable map users
Check your servers for CVE-2026-139305
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-139305 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: Count sleepable callbacks as sleepable map users
map->sleepable_refcnt tells bpf_map_fd_put_ptr() whether an inner map that is taken out of its outer map has to wait for an RCU Tasks Trace grace period as well. It counts the sleepable programs that use the outer map. The bpf_wq or bpf_task_work callback of a program that is not sleepable runs under rcu_read_lock_trace() only, and is not counted.
Such a callback can look an inner map up and keep it while user space deletes it from the outer map. The inner map is freed behind a plain RCU grace period, under the callback:
BUG: KASAN: slab-use-after-free in array_map_update_elem+0x6bc/0x7d0
Count a program with such a callback. The maps are bound before the verifier meets the callback, so raise the count of those that are bound when it does.
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.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8e83da9732d91c60fdc651b2486c8e5935eb0ca2, before dcbbe0e979d766ed4eddf25308eb54cd13c10b62 affected from 8e83da9732d91c60fdc651b2486c8e5935eb0ca2, before 29c908a15d033256d9434cce335db4f8f6719d7f affected from 8e83da9732d91c60fdc651b2486c8e5935eb0ca2, before dfe90eecac8eb29071dc66418f15f550d6ddff0e affected from 8e83da9732d91c60fdc651b2486c8e5935eb0ca2, before 927c9c985f3ef4d30c086884b7e0ecb933f742ef
Other versions: unaffected
|
| Linux |
affected 6.10 unaffected before 6.10 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-139305 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139305
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-139305
trivy image --scanners vuln IMAGE | grep CVE-2026-139305
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/dcbbe0e979d766ed4eddf25308eb54cd13c10b62 git.kernel.org
- https://git.kernel.org/stable/c/29c908a15d033256d9434cce335db4f8f6719d7f git.kernel.org
- https://git.kernel.org/stable/c/dfe90eecac8eb29071dc66418f15f550d6ddff0e git.kernel.org
- https://git.kernel.org/stable/c/927c9c985f3ef4d30c086884b7e0ecb933f742ef git.kernel.org
Source: the record CVE-2026-139305 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