CVE-2026-139744

cgroup: Make the offline drain interruptible

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

cgroup: Make the offline drain interruptible

cgroup_subtree_control_write() and cgroup_type_write() drain dying csses
from the subtree before re-applying control, so that a controller being
re-enabled gets a fresh css instead of adopting one that is still dying. The
drain waits for offline_css() in TASK_UNINTERRUPTIBLE.

Since 1dffd95575eb ("cgroup: Defer kill_css_finish() in
cgroup_apply_control_disable()"), a disabled css offlines only after every
task that still pins it has finished exiting. The root cause of the hang is
an indefinite wait in a place where indefinite waits should not happen: a
task past exit_signals() can block in its exit path for as long as, say, a
FUSE daemon takes to answer a flush, and nothing can interrupt it because
prepare_signal() drops every signal for an exiting group. The drain then
escalated that into an uninterruptible wait for the writer, which sits in D
state for as long as the exiting task does. That is the hang syzbot reports
as "task hung in cgroup_subtree_control_write".

Make the drain interruptible. Nothing has been modified when it runs, so the
write restarts or fails with EINTR without side effects. cgroup1 mount and
remount drain the same way and become interruptible too.
cgroup_destroy_root() drains from a workqueue where no signal is ever
pending and keeps waiting as before.

This only stops the escalation. The write still waits for the exiting tasks,
and the indefinite wait in the exit path remains a separate problem.

Analysis

AI-generated

Technical impact

The Linux kernel had a defect where writes to the cgroup subtree control could block indefinitely in an uninterruptible state, leading to hung tasks. This occurs when draining dying cgroup subsystems; the kernel waits for exiting tasks that may stay offline for long periods, preventing the write from completing. The bug can cause system hangs, forming a denial‑of‑service condition. The fix makes the drain interruptible, allowing the write to return with EINTR, but does not remove the underlying wait for exiting tasks, which remains a separate issue.

Affected Systems

All Linux kernel releases prior to the commit that makes the offline drain interruptible are affected. The vulnerability is present in the general Linux kernel codebase; no specific distribution versions are listed. Systems running unpatched kernels may experience hangs when performing cgroup subtree control operations.

Risk and Exploitability

The exploit requires privileged access to modify cgroup settings and typically only influences a single task. While the CVSS score is not provided and the EPSS data is not available, the risk is moderate because the fault can cause a system‑wide hang. The vulnerability is not listed in the CISA KEV catalog, suggesting no documented exploitation. Nevertheless, the defect allows an attacker with root privileges to induce a denial of service by issuing a cgroup_subtree_control write that hangs indefinitely.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a release that includes the commit that makes the offline drain interruptible (see 1dffd95575eb).
  • If a kernel update cannot be applied immediately, restrict execution of cgroup_subtree_control_write to trusted users and monitor for tasks stuck in D state; reboot if necessary.
  • Consider conducting cgroup operations during low activity periods or after confirming that no heavy I/O processes (e.g., FUSE daemons) are active to reduce the chance of long waits.

Generated by OpenCVE AI on December 1, 2026 at 01:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-400
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cgroup: Make the offline drain interruptible cgroup_subtree_control_write() and cgroup_type_write() drain dying csses from the subtree before re-applying control, so that a controller being re-enabled gets a fresh css instead of adopting one that is still dying. The drain waits for offline_css() in TASK_UNINTERRUPTIBLE. Since 1dffd95575eb ("cgroup: Defer kill_css_finish() in cgroup_apply_control_disable()"), a disabled css offlines only after every task that still pins it has finished exiting. The root cause of the hang is an indefinite wait in a place where indefinite waits should not happen: a task past exit_signals() can block in its exit path for as long as, say, a FUSE daemon takes to answer a flush, and nothing can interrupt it because prepare_signal() drops every signal for an exiting group. The drain then escalated that into an uninterruptible wait for the writer, which sits in D state for as long as the exiting task does. That is the hang syzbot reports as "task hung in cgroup_subtree_control_write". Make the drain interruptible. Nothing has been modified when it runs, so the write restarts or fails with EINTR without side effects. cgroup1 mount and remount drain the same way and become interruptible too. cgroup_destroy_root() drains from a workqueue where no signal is ever pending and keeps waiting as before. This only stops the escalation. The write still waits for the exiting tasks, and the indefinite wait in the exit path remains a separate problem.
Title cgroup: Make the offline drain interruptible
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM