{"id":"CVE-2026-139193","aliases":["CVE-2026-139193"],"related":[],"kind":"vulnerability","state":"published","title":"cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()\n\nSince the introduction of cpuset.cpus.exclusive in commit\ne2ffe502ba45 (\"cgroup/cpuset: Add cpuset.cpus.exclusive for v2\"), a\ncompute_effective_exclusive_cpumask() helper which is later renamed to\ncompute_excpus() is added to compute the effective xcpus of a partition\nroot. However update_parent_effective_cpumask() is not updated in all\nproper places to use the new helper to check if a given cpuset should\nremain a valid partition root. This can cause a cpuset to incorrectly\nremain a valid partition root even if no effective xcpus is left.\n\nFix that problem by using compute_excpus() to compute the effective xcpus\ninto delmask in all cases except partcmd_disable, partcmd_invalidate\nor partcmd_update with newmask set and use it for tasks_nocpu_error()\ncheck as well as checking its emptiness. This enables us to catch invalid\npartition root more accurately in update_parent_effective_cpumask().\n\nIn the case of partcmd_update with newmask set, the passed in new\neffective xcpus value will directly be used in the tasks_nocpu_error()\ncheck without relying on old data in the cpuset.\n\nFor the partcmd_update with NULL newmask case, the cpu exclusivity test\nthere is also relaxed to be performed only if exclusive_cpus is empty.\n\nSome test case are added to test_cpuset_prs.sh for invalidating a\npartition root due to its effective xcpus becoming empty as well as\nmaking sure that an invalid partition can only be revived when exclusive\nCPUs are available agin.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()\n\nSince the introduction of cpuset.cpus.exclusive in commit\ne2ffe502ba45 (\"cgroup/cpuset: Add cpuset.cpus.exclusive for v2\"), a\ncompute_effective_exclusive_cpumask() helper which is later renamed to\ncompute_excpus() is added to compute the effective xcpus of a partition\nroot. However update_parent_effective_cpumask() is not updated in all\nproper places to use the new helper to check if a given cpuset should\nremain a valid partition root. This can cause a cpuset to incorrectly\nremain a valid partition root even if no effective xcpus is left.\n\nFix that problem by using compute_excpus() to compute the effective xcpus\ninto delmask in all cases except partcmd_disable, partcmd_invalidate\nor partcmd_update with newmask set and use it for tasks_nocpu_error()\ncheck as well as checking its emptiness. This enables us to catch invalid\npartition root more accurately in update_parent_effective_cpumask().\n\nIn the case of partcmd_update with newmask set, the passed in new\neffective xcpus value will directly be used in the tasks_nocpu_error()\ncheck without relying on old data in the cpuset.\n\nFor the partcmd_update with NULL newmask case, the cpu exclusivity test\nthere is also relaxed to be performed only if exclusive_cpus is empty.\n\nSome test case are added to test_cpuset_prs.sh for invalidating a\npartition root due to its effective xcpus becoming empty as well as\nmaking sure that an invalid partition can only be revived when exclusive\nCPUs are available agin.","source":"cvelist"}],"published":"2026-11-30T13:32:26.446Z","modified":"2026-11-30T14:18:38.810Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","fixed":"77d8acae37065b8c7a00543e0caea834de9cc837","status":"affected"},{"type":"git","introduced":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","fixed":"220c4130d3b49bbc669f96c03993d3874ab907d4","status":"affected"},{"type":"git","introduced":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","fixed":"69a75e4f377629928bd173747b864694c2af4e1c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.18.66","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/77d8acae37065b8c7a00543e0caea834de9cc837","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/220c4130d3b49bbc669f96c03993d3874ab907d4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69a75e4f377629928bd173747b864694c2af4e1c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139193","url":"https://www.cve.org/CVERecord?id=CVE-2026-139193","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:26.446Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139193","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139193","licence":"Public domain","modified":"2026-11-30T14:18:38.810Z"}],"updatedAt":"2026-11-30T14:32:47.275Z","epss":{"score":0.00206,"percentile":0.11345,"date":"2026-12-01T12:00:22.000Z"}}