CVE-2026-99244: pid_namespace: prevent TIF_NOTIFY_SIGNAL from interrupting the reaper
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
pid_namespace: prevent TIF_NOTIFY_SIGNAL from interrupting the reaper
Since commit 7fea700e04bd ("zap_pid_ns_processes: clear TIF_NOTIFY_SIGNAL along with TIF_SIGPENDING") zap_pid_ns_processes() clears TIF_NOTIFY_SIGNAL before every kernel_wait4() call. Otherwise kernel_wait4() doesn't sleep and returns -ERESTARTSYS if signal_pending() is true and the reaper busy-waits.
But clearing TIF_NOTIFY_SIGNAL doesn't fix it. It can get raised again. For example, klp_send_signals() sets it raw against any task that hasn't transitioned yet. And it keeps sending it until the livepatch finishes.
The sleep loop waiting for pid_allocated to drop has the same problem and it doesn't even clear anything. So a schedule() in TASK_INTERRUPTIBLE returns immediately.
Use a no_notify_signal guard. signal_pending() will ignore TIF_NOTIFY_SIGNAL and the pid namespace reaper sleeps until a child exits or free_pid() wakes it.
The Linux kernel CVE team has assigned CVE-2026-99244 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1.95 with commit edd2754a62bee8d97b4808a15de024f66a1ddccf and fixed in 6.1.191 with commit 2c20ace1698d03a23467351be1d281e89b36ade3 Issue introduced in 6.6.35 with commit 3466abafa9f4f81a869da828e52a12f693175ec2 and fixed in 6.6.161 with commit 9ab0324f4868eeb20c63f063a1e5bc01d5539212 Issue introduced in 6.10 with commit 7fea700e04bd3f424c2d836e98425782f97b494e and fixed in 6.12.115 with commit 30b274508c743f243c82904954c4e416d7143d4c Issue introduced in 6.10 with commit 7fea700e04bd3f424c2d836e98425782f97b494e and fixed in 6.18.60 with commit 70178691c467c8f9f722765299fd8524c3121a35 Issue introduced in 6.10 with commit 7fea700e04bd3f424c2d836e98425782f97b494e and fixed in 7.2.14 with commit 3d15ac36ce174477efa5365e424dbd47950fd2b9 Issue introduced in 6.10 with commit 7fea700e04bd3f424c2d836e98425782f97b494e and fixed in 7.3.1 with commit f46cd8241d9b83f2279cc0db3e9d3e181b548a59 Issue introduced in 5.10.221 with commit 82c7acf9a12c9b4e4b0aba531de82b4e39a345c8 Issue introduced in 5.15.162 with commit 8e69e589f233ca2c9631f5af2b94f95dfc2ba804 Issue introduced in 6.9.6 with commit 09ab5b424b17cfe633db58bb2f9edbaf9484cf20
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99244
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
kernel/pid_namespace.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/2c20ace1698d03a23467351be1d281e89b36ade3 https://git.kernel.org/stable/c/9ab0324f4868eeb20c63f063a1e5bc01d5539212 https://git.kernel.org/stable/c/30b274508c743f243c82904954c4e416d7143d4c https://git.kernel.org/stable/c/70178691c467c8f9f722765299fd8524c3121a35 https://git.kernel.org/stable/c/3d15ac36ce174477efa5365e424dbd47950fd2b9 https://git.kernel.org/stable/c/f46cd8241d9b83f2279cc0db3e9d3e181b548a59 https://git.kernel.org/stable/c/5c0985dd3c32fc2bbd0e8beaf13cf52cd97376a2