{"id":"CVE-2026-139089","aliases":["CVE-2026-139089"],"related":[],"kind":"vulnerability","state":"published","title":"ucount: read the parent ucounts before dropping the rlimit count","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nucount: read the parent ucounts before dropping the rlimit count\n\ndo_dec_rlimit_put_ucounts() drops its share of iter->rlimit[type] and\nonly then loads iter->ns->ucounts. If the decrement leaves the count\nnon-zero, a concurrent caller can take it to zero and put the last\nreference, which frees the ucounts and possibly its user namespace with\nkfree_rcu(). An exiting task frees its pending signals without siglock\nor any RCU read-side section, so when it is preempted between the\ndecrement and the load for a grace period it reads freed memory and\nthen decrements a counter through the pointer it found there.\n\nA pending signal holds no reference on its ucounts: the reference is\ntaken by whoever moves the count from 0 to 1 and dropped by whoever\nmoves it back to 0, so the caller's share of the count is all that\nkeeps iter alive, and only until it is dropped.\n\nLoad the parent first; it stays pinned by the caller's share of its\nown count.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nucount: read the parent ucounts before dropping the rlimit count\n\ndo_dec_rlimit_put_ucounts() drops its share of iter->rlimit[type] and\nonly then loads iter->ns->ucounts. If the decrement leaves the count\nnon-zero, a concurrent caller can take it to zero and put the last\nreference, which frees the ucounts and possibly its user namespace with\nkfree_rcu(). An exiting task frees its pending signals without siglock\nor any RCU read-side section, so when it is preempted between the\ndecrement and the load for a grace period it reads freed memory and\nthen decrements a counter through the pointer it found there.\n\nA pending signal holds no reference on its ucounts: the reference is\ntaken by whoever moves the count from 0 to 1 and dropped by whoever\nmoves it back to 0, so the caller's share of the count is all that\nkeeps iter alive, and only until it is dropped.\n\nLoad the parent first; it stays pinned by the caller's share of its\nown count.","source":"cvelist"}],"published":"2026-11-30T13:31:28.611Z","modified":"2026-11-30T14:18:16.820Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"15bc01effefe97757ef02ca09e9d1b927ab22725","fixed":"64b45e9ef33b037a66b3ffafeb8909c00272b4a1","status":"affected"},{"type":"git","introduced":"15bc01effefe97757ef02ca09e9d1b927ab22725","fixed":"f43528c980b17aef3ee03368afe30e50ec47e2f6","status":"affected"},{"type":"git","introduced":"15bc01effefe97757ef02ca09e9d1b927ab22725","fixed":"41e644f89e556db08b535108e27dcc62859da443","status":"affected"},{"type":"git","introduced":"15bc01effefe97757ef02ca09e9d1b927ab22725","fixed":"a81dc6acbdbe145b7e5776fd317002a7cfbd769f","status":"affected"},{"type":"git","introduced":"15bc01effefe97757ef02ca09e9d1b927ab22725","fixed":"cb10fa39723fdfd1b7a7c1e6c33bec5ab98cf1d3","status":"affected"},{"type":"git","introduced":"15bc01effefe97757ef02ca09e9d1b927ab22725","fixed":"0aa5576a9836d68e4e6fa92d5bf6b95bad1fd697","status":"affected"},{"type":"git","introduced":"15bc01effefe97757ef02ca09e9d1b927ab22725","fixed":"38bf603d1ea5d5a65a9cb277df75327ffec01ff1","status":"affected"},{"type":"git","version":"e8735e2e306f1c9c8b3a4b9218a349f7d96e3df6","status":"affected"},{"type":"semver","introduced":"5.14.15","fixed":"5.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/64b45e9ef33b037a66b3ffafeb8909c00272b4a1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f43528c980b17aef3ee03368afe30e50ec47e2f6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41e644f89e556db08b535108e27dcc62859da443","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a81dc6acbdbe145b7e5776fd317002a7cfbd769f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb10fa39723fdfd1b7a7c1e6c33bec5ab98cf1d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0aa5576a9836d68e4e6fa92d5bf6b95bad1fd697","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/38bf603d1ea5d5a65a9cb277df75327ffec01ff1","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139089","url":"https://www.cve.org/CVERecord?id=CVE-2026-139089","licence":"CVE Terms of Use","modified":"2026-11-30T13:31:28.611Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139089","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139089","licence":"Public domain","modified":"2026-11-30T14:18:16.820Z"}],"updatedAt":"2026-11-30T14:32:49.533Z","epss":{"score":0.00363,"percentile":0.32183,"date":"2026-12-01T12:00:22.000Z"}}