CVE-2026-139192

cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()

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/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()

With the introduction of cpuset.cpus.exclusive, the computation of
effective_cpus differs depending on if a cpuset is a valid partition
root or not.

In update_cpumasks_hier(), effective_cpus is computed early
to check if the current subtree can be skipped. Later on
update_parent_effective_cpumask() may be called which can change the
partition state from valid to invalid or vice versa. If the partition
state changes, the previously computed effective_cpus may no longer be
valid. Fix that by recomputing effective_cpus again when that happens.

Also add a new test case into test_cpuset_prs.sh to verify this change.

Analysis

AI-generated

Technical impact

The Linux kernel commit that introduced the fixed cpuset.cpus.exclusive feature mistakenly recomputed the effective_cpus value only once during the call to update_cpumasks_hier(). If later steps change the partition state, the earlier calculation can become invalid, allowing the kernel to skip security checks and potentially allocate CPUs incorrectly. An attacker could exploit this flaw to bypass cpuset restrictions, granting the process unintended CPU access or causing improper scheduling that could lead to denial of service. The core weakness is an incorrect control flow that allows a logic error to escape proper validation, aligning with the general class of improper input validation or calculation flaws (CWE‑665).

Affected Systems

All Linux kernel releases that contain the cgroup/cpuset code path are susceptible until the kernel is updated to include the patch that recomputes effective_cpus when the partition state changes. The vulnerability is present in the Linux operating system's kernel component, affecting all distributions that ship without the commit restoring the correct behavior.

Risk and Exploitability

No EPSS score is available and the issue is not listed in CISA KEV, but the lack of a publicly known exploit does not diminish the risk; a local user with the ability to manipulate cgroup settings can trigger the logic error. The CVSS score is missing, yet the kernel nature of the bug implies potential high impact. The attack vector is likely local – a process with permission to modify cgroup cpus can exploit the bug to alter effective CPU masks and elevate privileges or crash the system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that incorporates the fix for update_cpumasks_hier(), such as the commit referenced in the advisory.
  • Restrict write access to the cpuset control interfaces (/sys/fs/cgroup/cpuset/*) so that only privileged users can modify them, thereby limiting the scope of the potential exploit.
  • Set up monitoring for unexpected CPU affinity changes or kernel error messages related to cgroups, and configure alerts to notify administrators if such events occur.

Generated by OpenCVE AI on November 30, 2026 at 20:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier() With the introduction of cpuset.cpus.exclusive, the computation of effective_cpus differs depending on if a cpuset is a valid partition root or not. In update_cpumasks_hier(), effective_cpus is computed early to check if the current subtree can be skipped. Later on update_parent_effective_cpumask() may be called which can change the partition state from valid to invalid or vice versa. If the partition state changes, the previously computed effective_cpus may no longer be valid. Fix that by recomputing effective_cpus again when that happens. Also add a new test case into test_cpuset_prs.sh to verify this change.
Title cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

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