CVE-2026-139192: cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()
cgroup/cpuset: Fix incorrect effectivecpus bug in updatecpumaskshier()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In update_cpumasks_hier(), recompute effective_cpus when the partition state changes between valid and invalid, since update_parent_effective_cpumask() may change that state.
Event History
Frequently Asked Questions
Which systems are relevant to this issue?
The issue applies to Linux kernel systems using cgroup cpusets where cpuset.cpus.exclusive is involved. It is specifically tied to transitions in whether a cpuset is a valid partition root.
What condition triggers the incorrect CPU mask calculation?
The problem can occur when update_cpumasks_hier() calculates effective_cpus before update_parent_effective_cpumask() changes a cpuset's partition state. If that state changes from valid to invalid, or vice versa, the earlier effective_cpus value may no longer be correct.
How was the fix validated?
The fix recomputes effective_cpus when the partition state changes. A test case was added to test_cpuset_prs.sh to verify the corrected behavior.