CVE-2026-139089

Source
https://cve.org/CVERecord?id=CVE-2026-139089
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139089.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139089
Downstream
Published
2026-11-30T13:31:28Z
Modified
2026-11-30T15:02:12Z
Summary
ucount: read the parent ucounts before dropping the rlimit count
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139089.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
15bc01effefe97757ef02ca09e9d1b927ab22725
Fixed
64b45e9ef33b037a66b3ffafeb8909c00272b4a1
Fixed
f43528c980b17aef3ee03368afe30e50ec47e2f6
Fixed
41e644f89e556db08b535108e27dcc62859da443
Fixed
a81dc6acbdbe145b7e5776fd317002a7cfbd769f
Fixed
cb10fa39723fdfd1b7a7c1e6c33bec5ab98cf1d3
Fixed
0aa5576a9836d68e4e6fa92d5bf6b95bad1fd697
Fixed
38bf603d1ea5d5a65a9cb277df75327ffec01ff1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e8735e2e306f1c9c8b3a4b9218a349f7d96e3df6

Affected versions

v5.*
v5.14.15
v5.14.16
v5.14.17
v5.14.18
v5.14.19
v5.14.20
v5.14.21

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139089.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.14.15
Fixed
5.15
Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139089.json"