{"id":"CVE-2026-139270","state":"PUBLISHED","title":"cgroup/cpuset: Properly disabling partition when partition state switching fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/cpuset: Properly disabling partition when partition state switching fails\n\nBefore commit 103b08709e8a (\"cgroup/cpuset: Fail if isolated and nohz_full\ndon't leave any housekeeping\"), the partition state can be freely switched\nfrom \"root\" to \"isolated\" and vice versa. After that commit, the switch\nfrom \"root\" to \"isolated\" can fail if it exhausts all the housekeeping\nCPUs. Later on, the switch from \"isolated\" to \"root\" can also fail if\nsome of the partition CPUs are boot-time isolated by \"isolcpus\".\n\nA local or remote partition is made invalid when the switch fails.\nHowever there are 2 problems with the existing invalidation code.\n\n 1) Both the subpartitions_cpus and isolated_cpus are not properly\n    updated.\n 2) In the case of remote partition with remote_partition flag set, it\n    is not cleared.\n\nFix this by calling the proper partition disabling function in this case.\n\nOn an x86 test system with boot option \"isolcpus=10 cgroup_debug\" set\nand more than 16 cores, the following commands were executed after boot.\n\n  # cd /sys/fs/cgroup\n  # echo +cpuset > cgroup.subtree_control\n  # cat cpuset.cpus.isolated\n  10\n  # mkdir A\n  # echo 10-12 > A/cpuset.cpus\n  # echo isolated > A/cpuset.cpus.partition\n  # cat A/cpuset.cpus.partition\n  isolated\n\nBefore the patch:\n\n  # echo root > A/cpuset.cpus.partition\n  # cat A/cpuset.cpus.partition\n  root invalid (partition config conflicts with housekeeping setup)\n  # cat cpuset.cpus.isolated .__DEBUG__.cpuset.cpus.subpartitions\n  10-12\n  10-12\n\nAfter the patch:\n\n  # echo root > A/cpuset.cpus.partition\n  # cat A/cpuset.cpus.partition\n  root invalid (partition config conflicts with housekeeping setup)\n  # cat cpuset.cpus.isolated .__DEBUG__.cpuset.cpus.subpartitions\n  10","publishedAt":"2026-11-30T13:33:11.644Z","updatedAt":"2026-11-30T13:33:11.644Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4a74e418881f26cdeae1011453acd66cedc8ad2c","status":"affected","lessThan":"52e75bbfc1942e275b71eb7402acdfbb65ece5c1","versionType":"git"},{"version":"4a74e418881f26cdeae1011453acd66cedc8ad2c","status":"affected","lessThan":"5ba729165a9ec590b0a3fde98c24cd063711b89a","versionType":"git"},{"version":"4a74e418881f26cdeae1011453acd66cedc8ad2c","status":"affected","lessThan":"db27a748a399e24af715c54c12a7e928e32d15b0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cpuset.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cpuset.c"]}],"references":["https://git.kernel.org/stable/c/52e75bbfc1942e275b71eb7402acdfbb65ece5c1","https://git.kernel.org/stable/c/5ba729165a9ec590b0a3fde98c24cd063711b89a","https://git.kernel.org/stable/c/db27a748a399e24af715c54c12a7e928e32d15b0"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139270.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139270","state":"PUBLISHED","datePublished":"2026-11-30T13:33:11.644Z","dateUpdated":"2026-11-30T13:33:11.644Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.924Z"},"containers":{"cna":{"title":"cgroup/cpuset: Properly disabling partition when partition state switching fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/cpuset: Properly disabling partition when partition state switching fails\n\nBefore commit 103b08709e8a (\"cgroup/cpuset: Fail if isolated and nohz_full\ndon't leave any housekeeping\"), the partition state can be freely switched\nfrom \"root\" to \"isolated\" and vice versa. After that commit, the switch\nfrom \"root\" to \"isolated\" can fail if it exhausts all the housekeeping\nCPUs. Later on, the switch from \"isolated\" to \"root\" can also fail if\nsome of the partition CPUs are boot-time isolated by \"isolcpus\".\n\nA local or remote partition is made invalid when the switch fails.\nHowever there are 2 problems with the existing invalidation code.\n\n 1) Both the subpartitions_cpus and isolated_cpus are not properly\n    updated.\n 2) In the case of remote partition with remote_partition flag set, it\n    is not cleared.\n\nFix this by calling the proper partition disabling function in this case.\n\nOn an x86 test system with boot option \"isolcpus=10 cgroup_debug\" set\nand more than 16 cores, the following commands were executed after boot.\n\n  # cd /sys/fs/cgroup\n  # echo +cpuset > cgroup.subtree_control\n  # cat cpuset.cpus.isolated\n  10\n  # mkdir A\n  # echo 10-12 > A/cpuset.cpus\n  # echo isolated > A/cpuset.cpus.partition\n  # cat A/cpuset.cpus.partition\n  isolated\n\nBefore the patch:\n\n  # echo root > A/cpuset.cpus.partition\n  # cat A/cpuset.cpus.partition\n  root invalid (partition config conflicts with housekeeping setup)\n  # cat cpuset.cpus.isolated .__DEBUG__.cpuset.cpus.subpartitions\n  10-12\n  10-12\n\nAfter the patch:\n\n  # echo root > A/cpuset.cpus.partition\n  # cat A/cpuset.cpus.partition\n  root invalid (partition config conflicts with housekeeping setup)\n  # cat cpuset.cpus.isolated .__DEBUG__.cpuset.cpus.subpartitions\n  10"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4a74e418881f26cdeae1011453acd66cedc8ad2c","status":"affected","lessThan":"52e75bbfc1942e275b71eb7402acdfbb65ece5c1","versionType":"git"},{"version":"4a74e418881f26cdeae1011453acd66cedc8ad2c","status":"affected","lessThan":"5ba729165a9ec590b0a3fde98c24cd063711b89a","versionType":"git"},{"version":"4a74e418881f26cdeae1011453acd66cedc8ad2c","status":"affected","lessThan":"db27a748a399e24af715c54c12a7e928e32d15b0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cpuset.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cpuset.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/52e75bbfc1942e275b71eb7402acdfbb65ece5c1"},{"url":"https://git.kernel.org/stable/c/5ba729165a9ec590b0a3fde98c24cd063711b89a"},{"url":"https://git.kernel.org/stable/c/db27a748a399e24af715c54c12a7e928e32d15b0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:11.644Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}