CVE-2026-139193: cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

Since the introduction of cpuset.cpus.exclusive in commit e2ffe502ba45 ("cgroup/cpuset: Add cpuset.cpus.exclusive for v2"), a computeeffectiveexclusivecpumask() helper which is later renamed to computeexcpus() is added to compute the effective xcpus of a partition root. However updateparenteffectivecpumask() 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 computeexcpus() to compute the effective xcpus into delmask in all cases except partcmddisable, partcmdinvalidate or partcmdupdate with newmask set and use it for tasksnocpuerror() check as well as checking its emptiness. This enables us to catch invalid partition root more accurately in updateparenteffectivecpumask().

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

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

Some test case are added to testcpusetprs.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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In update_parent_effective_cpumask(), use compute_excpus() to compute effective xcpus, and use the computed value for the tasks_nocpu_error() check and partition-root validity checks.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

Which Linux configurations are relevant to this issue?

The issue is relevant to Linux systems using cgroup v2 cpusets with cpuset.cpus.exclusive and partition roots. It concerns cases where a partition root can lose all effective exclusive CPUs.

2

What is the operational impact of the incorrect state?

A cpuset can incorrectly remain marked as a valid partition root even when it has no effective exclusive CPUs. This can prevent invalid partition-root state from being detected accurately during parent effective CPU mask updates.

3

What should be checked after applying the fix?

Verify that partition roots with no effective exclusive CPUs are detected as invalid during relevant cpuset updates. The corrected logic uses the computed effective exclusive CPU mask when checking task no-CPU errors and whether the mask is empty.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203