⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-143116: Linux cgroup v1 Freezer Can Leave Exiting Tasks Permanently Frozen | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-143116: Linux cgroup v1 Freezer Can Leave Exiting Tasks Permanently Frozen

Executive summary

CVE-2026-143116 affects the Linux kernel's cgroup v1 freezer subsystem. Under a specific race, a task that is already exiting can be frozen during a cgroup freeze cycle and then omitted from the subsequent thaw operation. The task can remain frozen indefinitely, including after SIGKILL, and may block PID-namespace or container teardown.

The defect is an availability and correctness issue rather than a memory-safety or privilege-escalation flaw. Its impact is local, but the supplied advisory says a C reproducer can reach the condition within about 10 seconds. An upstream fix has been described, although the context does not provide its commit SHA or the precise affected and fixed kernel release ranges.

Technical overview

The Linux cgroup v1 freezer provides a mechanism for suspending and resuming processes. Its implementation relies on task walks to enumerate the processes that must be frozen and thawed.

Commit a72f73c4dd9b ("cgroup: Don't expose dead tasks in cgroup") changed cgroup iteration so that an exiting task is hidden once its process has no remaining live threads. That behavior created an inconsistency in the freezer: the task set visible during the freeze walk could differ from the task set visible during the thaw walk.

The race occurs when another thread exits between those two walks:

  1. A target process is placed in a cgroup v1 freezer hierarchy.

  1. The freeze walk suspends the target task.

  1. Another thread of the same process exits, reducing its live-thread count to zero.

  1. The task-walk semantics now hide the still-running target task.

  1. The thaw walk does not visit that task, leaving it frozen.

The advisory's example uses a PID namespace init process. After commit 81933038f5e2 ("pid_namespace: make zap_pid_ns_processes() freezable"), that process can wait in zap_pid_ns_processes() while namespace teardown is in progress. The resulting trace shows the task stuck under zap_pid_ns_processes(), do_exit(), and __x64_sys_exit.

Affected systems

  • Product: Linux kernel

  • Component: cgroup/freezer subsystem, specifically the cgroup v1 freezer walks

  • Regression point: Commit a72f73c4dd9b ("cgroup: Don't expose dead tasks in cgroup")

  • Relevant enabling change: Commit 81933038f5e2 ("pid_namespace: make zap_pid_ns_processes() freezable")

  • Affected workflows: cgroup v1 freezer operations involving multi-threaded processes, particularly PID-namespace initialization or teardown

The provided context does not identify exact kernel release versions. The upstream Fixes: tag and stable-tree backports are required to determine the complete version range with confidence.

Root cause and impact

The defect is caused by asymmetric task visibility. The freezer assumes that a task visited during the freeze walk will also be visited during the thaw walk. An intervening thread exit invalidates that assumption because the iteration can stop exposing the exiting task even though it remains present and frozen.

Consequences include:

  • An exiting task that remains frozen after thaw

  • Indefinite blocking of PID-namespace cleanup

  • Delayed or wedged container teardown

  • Continued consumption of kernel task resources

  • Potential service degradation if the condition is repeated

No information disclosure, arbitrary code execution, sandbox escape, or privilege escalation is described in the supplied advisory. The principal security impact is local denial of service.

Exploitability assessment

The vulnerability is local and timing-sensitive, but the advisory reports a reproducer that reaches the condition within about 10 seconds. This indicates practical reproducibility rather than a purely theoretical race.

Potential exposure is strongest on systems that use cgroup v1 freezer interfaces alongside container runtimes or PID namespaces. The exact privilege requirements depend on freezer cgroup ownership and permissions, which are not specified in the supplied context.

There is no evidence in the provided intelligence of exploitation in the wild, weaponization, or inclusion in the CISA KEV catalog. No CVSS vector or score is available in the context.

Detection

Potential indicators include:

  • Tasks that remain frozen while already inside do_exit()

  • A frozen task whose stack contains zap_pid_ns_processes, do_exit, or __x64_sys_exit

  • Hung-task reports involving zap_pid_ns_processes()

  • PID-namespace or container teardown operations that do not complete

  • Cgroup v1 freezer states that remain FROZEN after a thaw request

The trace in the advisory includes a task record beginning with task:fz-init state:D and shows the kernel's call trace through zap_pid_ns_processes() and do_exit().

Mitigation

The upstream correction uses CSS_TASK_ITER_WITH_DEAD in all three cgroup v1 freezer walks. This restores a consistent task set across the freeze and thaw operations. The advisory states that the affected task is thawed and exits with the fix.

For systems that cannot immediately adopt a corrected kernel:

  • Avoid using the cgroup v1 freezer for checkpoint/restore or process-freeze workflows in multi-threaded workloads.

  • Prefer cgroup v2 where operationally feasible, because the affected v1 freezer walks are not used in the same manner.

  • Sequence process-thread shutdown before namespace teardown so that thread exits do not overlap a freeze/thaw cycle.

  • Add timeouts to container and namespace teardown workflows to identify operations blocked in zap_pid_ns_processes().

  • Monitor frozen exiting tasks and correlate them with hung-task reports and stalled namespace cleanup.

Expert insight

This issue illustrates why freezer and thawing implementations need symmetric enumeration semantics. Filtering tasks during one operation but not another can turn a normal state transition into an orphaned resource. The upstream solution applies the same iterator mode to all three v1 freezer walks and aligns the freezer with the approach previously used for sched_ext in commit 60f21a264930 ("cgroup, sched_ext: Include exiting tasks in cgroup iter").

The reproducible timing window raises operational relevance, but the current evidence still supports a low severity classification: impact is confined to local availability, and the context documents neither privilege escalation nor observed attacks. The missing release-range and backport data remain the main limitation for deployment decisions.

advisory informational CVE-2026-143116
·
← Back to Writeups