CVE-2026-139193

cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()

Published Nov 30, 2026 CVSS 3.1 · 2.3 Low EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()

Since the introduction of cpuset.cpus.exclusive in commit
e2ffe502ba45 ("cgroup/cpuset: Add cpuset.cpus.exclusive for v2"), a
compute_effective_exclusive_cpumask() helper which is later renamed to
compute_excpus() is added to compute the effective xcpus of a partition
root. However update_parent_effective_cpumask() is not updated in all
proper places to use the new helper to check if a given cpuset should
remain a valid partition root. This can cause a cpuset to incorrectly
remain a valid partition root even if no effective xcpus is left.

Fix that problem by using compute_excpus() to compute the effective xcpus
into delmask in all cases except partcmd_disable, partcmd_invalidate
or partcmd_update with newmask set and use it for tasks_nocpu_error()
check as well as checking its emptiness. This enables us to catch invalid
partition root more accurately in update_parent_effective_cpumask().

In the case of partcmd_update with newmask set, the passed in new
effective xcpus value will directly be used in the tasks_nocpu_error()
check without relying on old data in the cpuset.

For the partcmd_update with NULL newmask case, the cpu exclusivity test
there is also relaxed to be performed only if exclusive_cpus is empty.

Some test case are added to test_cpuset_prs.sh for invalidating a
partition root due to its effective xcpus becoming empty as well as
making sure that an invalid partition can only be revived when exclusive
CPUs are available agin.

Analysis

AI-generated

Technical impact

A missing call to the helper that correctly computes the exclusive CPU mask caused a cgroup cpuset partition root to remain valid even when its effective exclusive CPU set was empty. This logical flaw can lead to processes being scheduled on CPUs that are not actually allocated to the partition, potentially creating kernel instability or a denial of service for affected workloads. The weakness lies in improper control flow and lack of proper initialization checks, allowing an attacker to force an invalid partition to persist as a root.

Affected Systems

All Linux kernel releases that include the cpuset.cpus.exclusive feature before the application of commit 220c4130d3b49bbc669f96c03993d3874ab907d4 and later revisions that did not incorporate the patch. Any distribution shipping a kernel built against these versions without the commit is susceptible.

Risk and Exploitability

Based on the description, it is inferred that the control requires root or an equivalent capability to manipulate cpuset configuration, so local privilege is needed. No EPSS data is available and the vulnerability is not listed in the CISA KEV catalog, indicating that large‑scale exploitation is not currently documented. An attacker with sufficient privileges could trigger a denial of service or kernel instability by creating or modifying a cpuset that ends up with an empty effective exclusive CPU set while still being regarded as a valid partition root.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that contains the fix (commits 220c4130d3b49bbc669f96c03993d3874ab907d4 or later).
  • If a kernel upgrade cannot be performed immediately, apply the patch from the cited commit to the kernel source and rebuild the kernel.
  • While the patch is pending, restrict cpuset configuration changes to trusted privileged users and monitor for abnormal scheduling behaviors that could indicate exploitation.

Generated by OpenCVE AI on December 1, 2026 at 21:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-398
CWE-665
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-1025
References
Metrics threat_severity

None

cvssV3_1

{'score': 2.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-398
CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask() Since the introduction of cpuset.cpus.exclusive in commit e2ffe502ba45 ("cgroup/cpuset: Add cpuset.cpus.exclusive for v2"), a compute_effective_exclusive_cpumask() helper which is later renamed to compute_excpus() is added to compute the effective xcpus of a partition root. However update_parent_effective_cpumask() is not updated in all proper places to use the new helper to check if a given cpuset should remain a valid partition root. This can cause a cpuset to incorrectly remain a valid partition root even if no effective xcpus is left. Fix that problem by using compute_excpus() to compute the effective xcpus into delmask in all cases except partcmd_disable, partcmd_invalidate or partcmd_update with newmask set and use it for tasks_nocpu_error() check as well as checking its emptiness. This enables us to catch invalid partition root more accurately in update_parent_effective_cpumask(). In the case of partcmd_update with newmask set, the passed in new effective xcpus value will directly be used in the tasks_nocpu_error() check without relying on old data in the cpuset. For the partcmd_update with NULL newmask case, the cpu exclusivity test there is also relaxed to be performed only if exclusive_cpus is empty. Some test case are added to test_cpuset_prs.sh for invalidating a partition root due to its effective xcpus becoming empty as well as making sure that an invalid partition can only be revived when exclusive CPUs are available agin.
Title cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1025

    Comparison Using Wrong Factors

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
Severity
Low
Public date
Nov 30, 2026, 1:32 PM