CVE-2026-139089
ucount: read the parent ucounts before dropping the rlimit count
Check your servers for CVE-2026-139089
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-139089 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:
ucount: read the parent ucounts before dropping the rlimit count
do_dec_rlimit_put_ucounts() drops its share of iter->rlimit[type] and only then loads iter->ns->ucounts. If the decrement leaves the count non-zero, a concurrent caller can take it to zero and put the last reference, which frees the ucounts and possibly its user namespace with kfree_rcu(). An exiting task frees its pending signals without siglock or any RCU read-side section, so when it is preempted between the decrement and the load for a grace period it reads freed memory and then decrements a counter through the pointer it found there.
A pending signal holds no reference on its ucounts: the reference is taken by whoever moves the count from 0 to 1 and dropped by whoever moves it back to 0, so the caller's share of the count is all that keeps iter alive, and only until it is dropped.
Load the parent first; it stays pinned by the caller's share of its own count.
Exploitation
EPSS 0.36%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 32.1% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 15bc01effefe97757ef02ca09e9d1b927ab22725, before 64b45e9ef33b037a66b3ffafeb8909c00272b4a1 affected from 15bc01effefe97757ef02ca09e9d1b927ab22725, before f43528c980b17aef3ee03368afe30e50ec47e2f6 affected from 15bc01effefe97757ef02ca09e9d1b927ab22725, before 41e644f89e556db08b535108e27dcc62859da443 affected from 15bc01effefe97757ef02ca09e9d1b927ab22725, before a81dc6acbdbe145b7e5776fd317002a7cfbd769f affected from 15bc01effefe97757ef02ca09e9d1b927ab22725, before cb10fa39723fdfd1b7a7c1e6c33bec5ab98cf1d3 affected from 15bc01effefe97757ef02ca09e9d1b927ab22725, before 0aa5576a9836d68e4e6fa92d5bf6b95bad1fd697 affected from 15bc01effefe97757ef02ca09e9d1b927ab22725, before 38bf603d1ea5d5a65a9cb277df75327ffec01ff1 affected e8735e2e306f1c9c8b3a4b9218a349f7d96e3df6 affected from 5.14.15, before 5.15
Other versions: unaffected
|
| Linux |
affected 5.15 unaffected before 5.15 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-139089 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139089
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-139089
trivy image --scanners vuln IMAGE | grep CVE-2026-139089
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/64b45e9ef33b037a66b3ffafeb8909c00272b4a1 git.kernel.org
- https://git.kernel.org/stable/c/f43528c980b17aef3ee03368afe30e50ec47e2f6 git.kernel.org
- https://git.kernel.org/stable/c/41e644f89e556db08b535108e27dcc62859da443 git.kernel.org
- https://git.kernel.org/stable/c/a81dc6acbdbe145b7e5776fd317002a7cfbd769f git.kernel.org
- https://git.kernel.org/stable/c/cb10fa39723fdfd1b7a7c1e6c33bec5ab98cf1d3 git.kernel.org
- https://git.kernel.org/stable/c/0aa5576a9836d68e4e6fa92d5bf6b95bad1fd697 git.kernel.org
- https://git.kernel.org/stable/c/38bf603d1ea5d5a65a9cb277df75327ffec01ff1 git.kernel.org
Source: the record CVE-2026-139089 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