{"id":"CVE-2026-143117","summary":"cgroup/cpuset: Don't revive invalid partition without active CPU on hotplug","details":"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 \u003e cgroup.subtree_control\n  # mkdir A1 B1\n  # echo 1 \u003e A1/cpuset.cpus\n  # echo 1 \u003e A1/cpuset.cpus.exclusive\n  # echo 0,2-7 \u003e B1/cpuset.cpus\n  # echo root \u003e B1/cpuset.cpus.partition\n  # echo root \u003e A1/cpuset.cpus.partition\n  # cat A1/cpuset.cpus.partition\n  root invalid (Parent unable to distribute cpu downstream)\n  # echo 0 \u003e /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.","modified":"2026-12-03T11:01:24.642993133Z","published":"2026-12-03T09:19:30.177Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143117.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7b24edc4296a0e0d26405b1bdafeb0ed8c566d2f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/acec9637e03ca54bd3c3a0c1a6ad5c6dfa07c0df"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d51357affc3cfd485c14eb7f03cbe68366a51226"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ddca901b47d020e8cfa0029c841708d3ad8ebaab"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143117.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143117"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0c7f293efc87a06b51db9aa65256f8cb0a5a0a21"},{"fixed":"7b24edc4296a0e0d26405b1bdafeb0ed8c566d2f"},{"fixed":"ddca901b47d020e8cfa0029c841708d3ad8ebaab"},{"fixed":"d51357affc3cfd485c14eb7f03cbe68366a51226"},{"fixed":"acec9637e03ca54bd3c3a0c1a6ad5c6dfa07c0df"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143117.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143117.json"}}],"schema_version":"1.9.2"}