CVE-2026-99950
Last modified
CVE-2026-99950 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: ucount: take the rlimit reference before checking the limit inc_rlimit_get_ucounts() takes the reference that pins a ucounts level while its rlimit count is non-zero only in the walk whose increment is the 0 -> 1 transition, and only after that walk passed the limit check. A walk that raises the count from zero and then fails the limit backs out without the reference, while a concurrent walk that raised it past one keeps its increment and never takes one either: CPU0 (obeys the limit) CPU1 (overrides it) new = add_return(1) -> 1 new = add_return(1) -> 2 new != 1, no get_ucounts() new > max -> dec_unwind sub_return(1) -> 1 (no put) The count is 1 with no reference held. When CPU1 drops its charge, dec_rlimit_put_ucounts() takes the count to 0 and puts a reference nobody took, which frees the live struct ucounts, and the user_namespace it pins, with kfree_rcu().
Description
In the Linux kernel, the following vulnerability has been resolved: ucount: take the rlimit reference before checking the limit inc_rlimit_get_ucounts() takes the reference that pins a ucounts level while its rlimit count is non-zero only in the walk whose increment is the 0 -> 1 transition, and only after that walk passed the limit check. A walk that raises the count from zero and then fails the limit backs out without the reference, while a concurrent walk that raised it past one keeps its increment and never takes one either: CPU0 (obeys the limit) CPU1 (overrides it) new = add_return(1) -> 1 new = add_return(1) -> 2 new != 1, no get_ucounts() new > max -> dec_unwind sub_return(1) -> 1 (no put) The count is 1 with no reference held. When CPU1 drops its charge, dec_rlimit_put_ucounts() takes the count to 0 and puts a reference nobody took, which frees the live struct ucounts, and the user_namespace it pins, with kfree_rcu(). The mirror interleaving leaks the reference instead. An unprivileged user reaches this on a kernel with CONFIG_USER_NS=y: in a user namespace with RLIMIT_SIGPENDING 0, one process taking synchronous SIGSEGVs (forced, so override_rlimit is set) races a second process in the same namespace and uid that queues real-time signals, which obey the limit. The two hold different sighand->siglock but charge the same per-namespace SIGPENDING ucounts. Unpatched, with rcuref debugging: rcuref - imbalanced put() WARNING: lib/rcuref.c:266 at rcuref_put_slowpath+0xf4/0x120 put_ucounts+0x5a/0x180 do_dec_rlimit_put_ucounts+0x70/0x90 __sigqueue_free+0x33/0xc0 get_signal+0x56f/0xd20 arch_do_signal_or_restart+0x87/0x380 irqentry_exit+0x243/0x650 asm_exc_page_fault+0x26/0x30 Take the reference on the 0 -> 1 transition before the limit is checked, so the walk that raises the count from zero owns that level's reference even when its request is rejected, and unwind a rejected level through do_dec_rlimit_put_ucounts(), which releases the reference when the count returns to 0. The get_ucounts() failure path is unchanged. With the patch the same interleaving, forced some 80000 times in a KASAN build, produces no warning and no KASAN report.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 15bc01effefe97757ef02ca09e9d1b927ab22725, < 7c9610bdd63f8f5dce3f18d83e63a2fd9e2f1b0f; >= 15bc01effefe97757ef02ca09e9d1b927ab22725, < c8124930acec2dda2b157982aa245ca2d2f5474b; >= 15bc01effefe97757ef02ca09e9d1b927ab22725, < 20fef6cd188b1f584e98a607a78166b3ff745a69; >= 15bc01effefe97757ef02ca09e9d1b927ab22725, < b505e2bf49547930fa89f7ffeaed7ccb6737a93b; >= 15bc01effefe97757ef02ca09e9d1b927ab22725, < 4429d405124e6199092f029afd5630c84019d6f9; >= 15bc01effefe97757ef02ca09e9d1b927ab22725, < 98813eecf7555d35031ad8103c6a4eb14836e61c; >= 15bc01effefe97757ef02ca09e9d1b927ab22725, < b14fcabd34e02c40f72d3cd1e9bd4fd18df40ff1; e8735e2e306f1c9c8b3a4b9218a349f7d96e3df6; >= 5.14.15, < 5.15 |
| Linux | Linux | 5.15 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99950?
How severe is CVE-2026-99950?
How do I fix CVE-2026-99950?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-99945In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99946In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99947In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99948In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99949In the Linux kernel, the following vulnerability has been re…
- CVE-2026-9995Use after free in WebXR in Google Chrome prior to 148.0.7778…8.8
- CVE-2026-99951In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99952In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99953In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99954In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99955In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-99956In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-99950?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
