{"id":"CVE-2026-143117","state":"PUBLISHED","title":"cgroup/cpuset: Don't revive invalid partition without active CPU on hotplug","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/cpuset: Don't revive invalid partition without active CPU on hotplug\n\nWhen a CPU hotplug leaves no CPU outside of the partitions for the top\ncpuset, cpuset_handle_hotplug() clears subpartitions_cpus and gives all\nthe active CPUs back to the top cpuset. cpuset_hotplug_update_tasks()\nthen walks the hierarchy and invalidates the partitions, as\nsubpartitions_cpus is empty.\n\nHowever, an invalid partition visited in the same walk may be revived\nif its effective_xcpus is not empty. tasks_nocpu_error() doesn't catch\nit when its CPUs are all offline but it has no task. Its CPUs are put\nback into subpartitions_cpus, and the valid partitions visited after it\nare no longer invalidated, as subpartitions_cpus is not empty any more.\nThe top cpuset is left with CPUs overlapping with these partitions.\n\nIt can be reproduced on a system with 8 CPUs:\n\n  # cd /sys/fs/cgroup\n  # echo +cpuset > cgroup.subtree_control\n  # mkdir A1 B1\n  # echo 1 > A1/cpuset.cpus\n  # echo 1 > A1/cpuset.cpus.exclusive\n  # echo 0,2-7 > B1/cpuset.cpus\n  # echo root > B1/cpuset.cpus.partition\n  # echo root > A1/cpuset.cpus.partition\n  # cat A1/cpuset.cpus.partition\n  root invalid (Parent unable to distribute cpu downstream)\n  # echo 0 > /sys/devices/system/cpu/cpu1/online\n  # cat A1/cpuset.cpus.partition B1/cpuset.cpus.partition\n  root\n  root\n  # cat cpuset.cpus.effective\n  0,2-7\n\nA1 can't take CPU 1, the last CPU of the root cgroup which has tasks.\nWhen CPU 1 is offlined, A1 is revived without any active CPU, and B1\nstays valid while its CPUs are also in the effective CPUs of the root\ncgroup, which triggers\n\n  WARNING: kernel/cgroup/cpuset.c:919 at rebuild_sched_domains_locked\n\nOnly revive an invalid partition in hotplug if its effective_xcpus has\nan active CPU, the same as what is required to create a partition with\ntasks. With that, A1 and B1 are both invalidated in the above case.","publishedAt":"2026-12-03T09:19:30.177Z","updatedAt":"2026-12-03T09:19:30.177Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21","status":"affected","lessThan":"7b24edc4296a0e0d26405b1bdafeb0ed8c566d2f","versionType":"git"},{"version":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21","status":"affected","lessThan":"ddca901b47d020e8cfa0029c841708d3ad8ebaab","versionType":"git"},{"version":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21","status":"affected","lessThan":"d51357affc3cfd485c14eb7f03cbe68366a51226","versionType":"git"},{"version":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21","status":"affected","lessThan":"acec9637e03ca54bd3c3a0c1a6ad5c6dfa07c0df","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.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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/7b24edc4296a0e0d26405b1bdafeb0ed8c566d2f","https://git.kernel.org/stable/c/ddca901b47d020e8cfa0029c841708d3ad8ebaab","https://git.kernel.org/stable/c/d51357affc3cfd485c14eb7f03cbe68366a51226","https://git.kernel.org/stable/c/acec9637e03ca54bd3c3a0c1a6ad5c6dfa07c0df"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143117.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143117","state":"PUBLISHED","datePublished":"2026-12-03T09:19:30.177Z","dateUpdated":"2026-12-03T09:19:30.177Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.350Z"},"containers":{"cna":{"title":"cgroup/cpuset: Don't revive invalid partition without active CPU on hotplug","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/cpuset: Don't revive invalid partition without active CPU on hotplug\n\nWhen a CPU hotplug leaves no CPU outside of the partitions for the top\ncpuset, cpuset_handle_hotplug() clears subpartitions_cpus and gives all\nthe active CPUs back to the top cpuset. cpuset_hotplug_update_tasks()\nthen walks the hierarchy and invalidates the partitions, as\nsubpartitions_cpus is empty.\n\nHowever, an invalid partition visited in the same walk may be revived\nif its effective_xcpus is not empty. tasks_nocpu_error() doesn't catch\nit when its CPUs are all offline but it has no task. Its CPUs are put\nback into subpartitions_cpus, and the valid partitions visited after it\nare no longer invalidated, as subpartitions_cpus is not empty any more.\nThe top cpuset is left with CPUs overlapping with these partitions.\n\nIt can be reproduced on a system with 8 CPUs:\n\n  # cd /sys/fs/cgroup\n  # echo +cpuset > cgroup.subtree_control\n  # mkdir A1 B1\n  # echo 1 > A1/cpuset.cpus\n  # echo 1 > A1/cpuset.cpus.exclusive\n  # echo 0,2-7 > B1/cpuset.cpus\n  # echo root > B1/cpuset.cpus.partition\n  # echo root > A1/cpuset.cpus.partition\n  # cat A1/cpuset.cpus.partition\n  root invalid (Parent unable to distribute cpu downstream)\n  # echo 0 > /sys/devices/system/cpu/cpu1/online\n  # cat A1/cpuset.cpus.partition B1/cpuset.cpus.partition\n  root\n  root\n  # cat cpuset.cpus.effective\n  0,2-7\n\nA1 can't take CPU 1, the last CPU of the root cgroup which has tasks.\nWhen CPU 1 is offlined, A1 is revived without any active CPU, and B1\nstays valid while its CPUs are also in the effective CPUs of the root\ncgroup, which triggers\n\n  WARNING: kernel/cgroup/cpuset.c:919 at rebuild_sched_domains_locked\n\nOnly revive an invalid partition in hotplug if its effective_xcpus has\nan active CPU, the same as what is required to create a partition with\ntasks. With that, A1 and B1 are both invalidated in the above case."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21","status":"affected","lessThan":"7b24edc4296a0e0d26405b1bdafeb0ed8c566d2f","versionType":"git"},{"version":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21","status":"affected","lessThan":"ddca901b47d020e8cfa0029c841708d3ad8ebaab","versionType":"git"},{"version":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21","status":"affected","lessThan":"d51357affc3cfd485c14eb7f03cbe68366a51226","versionType":"git"},{"version":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21","status":"affected","lessThan":"acec9637e03ca54bd3c3a0c1a6ad5c6dfa07c0df","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.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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/7b24edc4296a0e0d26405b1bdafeb0ed8c566d2f"},{"url":"https://git.kernel.org/stable/c/ddca901b47d020e8cfa0029c841708d3ad8ebaab"},{"url":"https://git.kernel.org/stable/c/d51357affc3cfd485c14eb7f03cbe68366a51226"},{"url":"https://git.kernel.org/stable/c/acec9637e03ca54bd3c3a0c1a6ad5c6dfa07c0df"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:30.177Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.120"},{"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.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}