Linux kernel use-after-free in ucounts reference counting
- Exploited
- No known exploitation
- Fix
- Fixed in 5.15
- Who is exposed
- Not reported
Summary
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.
What to do
Upgrade to a fixed version: 5.15.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-99950 (ucount: take the rlimit reference before checking the limit), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-99950 (entry last updated 2026-12-01):
Affected:
- Linux Linux: from 5.14.15, fixed in 5.15
- Linux Linux: versions 5.15
Fixed versions: 5.15.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-99950 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-99950 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/7c9610bdd63f8f5dce3f18d83e63a2fd9e2f1b0f
- https://git.kernel.org/stable/c/c8124930acec2dda2b157982aa245ca2d2f5474b
- https://git.kernel.org/stable/c/20fef6cd188b1f584e98a607a78166b3ff745a69
- https://git.kernel.org/stable/c/b505e2bf49547930fa89f7ffeaed7ccb6737a93b
- https://git.kernel.org/stable/c/4429d405124e6199092f029afd5630c84019d6f9
- https://git.kernel.org/stable/c/98813eecf7555d35031ad8103c6a4eb14836e61c
- https://git.kernel.org/stable/c/b14fcabd34e02c40f72d3cd1e9bd4fd18df40ff1
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-99950
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-99950"}.Affected versions
- Linux LinuxFrom 5.14.15 · fixed in 5.15
- Linux Linux5.15
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity7.8/10CVSS 7.8
- No patch0/5No signal
What would change the score
- Would score about 83 if added to CISA KEV
- Would score about 78 if CISA's SSVC rates exploitation active
- Would score about 50 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 9
Questions about CVE-2026-99950
Is CVE-2026-99950 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-99950?
Linux: from 5.14.15 before 5.15. Linux: version 5.15.
Source: cve.now feed data
How do I fix CVE-2026-99950?
Upgrade to a fixed version: 5.15.
Source: cve.now feed data
Related
- CVE-2026-142948i2c: designware: queue only one read command for block reads
- CVE-2026-142947cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails
- CVE-2026-142946ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()
- CVE-2026-142945ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()
- CVE-2026-142944ASoC: amd: acp-es8336: Use an owned codec device reference
- CVE-2026-142943ASoC: amd: acp3x-es83xx: Keep an owned codec device reference
No corrections so far. Something wrong on this page? Report an error.