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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxe2ffe502ba4505ee9c7b432980c702b7801a37f3 to before 641635cbb850efb69e7b22f77efbc28adc317bfd Affectede2ffe502ba4505ee9c7b432980c702b7801a37f3 to before d3873b45bea4cc99d135922cdc89841164f33855 Affected
Linux Linux6.7 Affectedbefore 6.7 Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.