CVE-2026-99249: pid_namespace: make zap_pid_ns_processes() freezable
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
pid_namespace: make zap_pid_ns_processes() freezable
When the init of a pid namespace exits, zap_pid_ns_processes() waits until all other pids in the namespace are freed. A tracer outside the namespace that does not reap its traced zombies keeps those pids allocated, so this wait has no upper bound, and while it lasts every suspend attempt fails:
Freezing user space processes failed after 20.006 seconds (2 tasks refusing to freeze, wq_busy=0):
Neither wait is freezable. The first loop sleeps in do_wait(), which returns -ERESTARTSYS on the freezer's fake signal; the loop then clears TIF_SIGPENDING and waits again without ever freezing. The final loop sleeps in TASK_INTERRUPTIBLE, and since nothing clears TIF_SIGPENDING there, schedule() returns immediately after the first freeze attempt and the task spins until the wait ends.
Sleep in TASK_INTERRUPTIBLE | TASK_FREEZABLE in do_wait(), so that the freezer can freeze tasks waiting there directly, and in TASK_IDLE | TASK_FREEZABLE in the final loop, like coredump_task_exit() does.
This was hit with Chromium-based browsers: crashpad ptrace-attaches the threads of a crashed renderer, which is a pid namespace init, and does not reap those killed during the dump.
The Linux kernel CVE team has assigned CVE-2026-99249 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.24 with commit 3eb07c8c8adb6f0572baba844ba2d9e501654316 and fixed in 6.1.191 with commit 064a6761d6f6ac55d090d3eaca649577ee736713 Issue introduced in 2.6.24 with commit 3eb07c8c8adb6f0572baba844ba2d9e501654316 and fixed in 6.6.161 with commit e8dafad7de9ede813af2d48cc04b7c88fef16682 Issue introduced in 2.6.24 with commit 3eb07c8c8adb6f0572baba844ba2d9e501654316 and fixed in 6.12.115 with commit 4b47107f1a80c809c80093e872bcaccdbae13db4 Issue introduced in 2.6.24 with commit 3eb07c8c8adb6f0572baba844ba2d9e501654316 and fixed in 6.18.59 with commit 2e10b8a74f55b5aae33db105d3e2d3ae759c865a Issue introduced in 2.6.24 with commit 3eb07c8c8adb6f0572baba844ba2d9e501654316 and fixed in 7.2.13 with commit 7deb5770840339fe88755bf27b92f74edc26ee87 Issue introduced in 2.6.24 with commit 3eb07c8c8adb6f0572baba844ba2d9e501654316 and fixed in 7.3 with commit 81933038f5e273d17ed22792f906889393b204c5
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-99249
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/exit.c
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/064a6761d6f6ac55d090d3eaca649577ee736713 https://git.kernel.org/stable/c/e8dafad7de9ede813af2d48cc04b7c88fef16682 https://git.kernel.org/stable/c/4b47107f1a80c809c80093e872bcaccdbae13db4 https://git.kernel.org/stable/c/2e10b8a74f55b5aae33db105d3e2d3ae759c865a https://git.kernel.org/stable/c/7deb5770840339fe88755bf27b92f74edc26ee87 https://git.kernel.org/stable/c/81933038f5e273d17ed22792f906889393b204c5