CVE-2026-99942

Source
https://cve.org/CVERecord?id=CVE-2026-99942
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99942.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99942
Downstream
Published
2026-11-30T13:18:29Z
Modified
2026-11-30T15:02:32Z
Summary
posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() signal path
Details

In the Linux kernel, the following vulnerability has been resolved:

posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() signal path

do_cpu_nanosleep() sleeps on a temporary k_itimer whose reference on the target's struct pid is taken by posix_cpu_timer_create() and dropped by posix_cpu_timer_del(). When a signal ends the sleep, the timer is disarmed with posix_cpu_timer_set(), but posix_cpu_timer_del() is only called for a result of 0 or TIMER_RETRY. If the target thread or process has exited in the meantime, timer_lock_sighand() finds no task, posix_cpu_timer_set() returns -ESRCH and the pid reference is leaked.

An unprivileged user can trigger this: sleep on the CPU clock of a thread, let that thread exit, then signal the sleeper. Each round leaks one struct pid. Repeating it exhausts unreclaimable slab memory within minutes:

Out of memory: Killed process 150 (poc) total-vm:789292kB, anon-rss:484kB Kernel panic - not syncing: System is deadlocked on memory

Fix this by also calling posix_cpu_timer_del() on -ESRCH. With the target gone, the deletion is safe. It finds no task either and only drops the pid reference.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99942.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
e26d70d271ee1a68a925796b411cb0239394c7a1
Fixed
89277a7472fca2ca55579bb390e067d790b280d6
Fixed
1042aa5909f05c0e4dfe824776461ef8811c5a3a
Fixed
f6dc4b140864e564f7f339909a0bc6ecacd8ad63
Fixed
5ca4fd63b7adb8c4fd148480274578f031cf66cb
Fixed
221d4fc53dc6403ace5487e6d18b757766131108
Fixed
a1028ed2d71d28395c58af1ab73abd0e42cc9909
Fixed
5f80c43b1eee4635493a308c0805fb2a1a24ad51
Fixed
8ccd731b63a0183ca2b0e18f3ca15864b3f37eda

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.14.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.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.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

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