CVE-2026-139270: cgroup/cpuset: Properly disabling partition when partition state switching fails
In the Linux kernel, the following vulnerability has been resolved:
cgroup/cpuset: Properly disabling partition when partition state switching fails
Before commit 103b08709e8a ("cgroup/cpuset: Fail if isolated and nohzfull don't leave any housekeeping"), the partition state can be freely switched from "root" to "isolated" and vice versa. After that commit, the switch from "root" to "isolated" can fail if it exhausts all the housekeeping CPUs. Later on, the switch from "isolated" to "root" can also fail if some of the partition CPUs are boot-time isolated by "isolcpus".
A local or remote partition is made invalid when the switch fails. However there are 2 problems with the existing invalidation code.
1) Both the subpartitionscpus and isolatedcpus are not properly updated. 2) In the case of remote partition with remotepartition flag set, it is not cleared.
Fix this by calling the proper partition disabling function in this case.
On an x86 test system with boot option "isolcpus=10 cgroupdebug" set and more than 16 cores, the following commands were executed after boot.
# cd /sys/fs/cgroup # echo +cpuset > cgroup.subtreecontrol # cat cpuset.cpus.isolated 10 # mkdir A # echo 10-12 > A/cpuset.cpus # echo isolated > A/cpuset.cpus.partition # cat A/cpuset.cpus.partition isolated
Before the patch:
# echo root > A/cpuset.cpus.partition # cat A/cpuset.cpus.partition root invalid (partition config conflicts with housekeeping setup) # cat cpuset.cpus.isolated .DEBUG.cpuset.cpus.subpartitions 10-12 10-12
After the patch:
# echo root > A/cpuset.cpus.partition # cat A/cpuset.cpus.partition root invalid (partition config conflicts with housekeeping setup) # cat cpuset.cpus.isolated .DEBUG.cpuset.cpus.subpartitions 10
Affected Software
Event History
Frequently Asked Questions
What conditions are needed to trigger this issue?
A cpuset partition state transition must fail. The described failure cases are switching from root to isolated after exhausting housekeeping CPUs, or switching from isolated to root when partition CPUs are boot-time isolated with isolcpus.
Are systems using boot-time CPU isolation especially relevant?
Yes. The description specifically identifies isolcpus as a condition that can cause an isolated-to-root transition to fail when partition CPUs were boot-time isolated. The provided test scenario uses isolcpus=10 together with cpuset cgroup configuration.
What is left inconsistent after a failed partition-state switch?
The existing invalidation path may fail to update subpartitions_cpus and isolated_cpus correctly. For remote partitions, it may also leave the remote_partition flag set.
What remediation is described?
The resolved change invokes the proper partition-disabling function when partition state switching fails. The supplied stable-kernel references identify commits containing the fix.