{"id":"CVE-2026-139193","state":"PUBLISHED","title":"cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()","description":"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.","publishedAt":"2026-11-30T13:32:26.446Z","updatedAt":"2026-11-30T13:32:26.446Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"77d8acae37065b8c7a00543e0caea834de9cc837","versionType":"git"},{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"220c4130d3b49bbc669f96c03993d3874ab907d4","versionType":"git"},{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"69a75e4f377629928bd173747b864694c2af4e1c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cpuset.c","tools/testing/selftests/cgroup/test_cpuset_prs.sh"]},{"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","tools/testing/selftests/cgroup/test_cpuset_prs.sh"]}],"references":["https://git.kernel.org/stable/c/77d8acae37065b8c7a00543e0caea834de9cc837","https://git.kernel.org/stable/c/220c4130d3b49bbc669f96c03993d3874ab907d4","https://git.kernel.org/stable/c/69a75e4f377629928bd173747b864694c2af4e1c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139193.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139193","state":"PUBLISHED","datePublished":"2026-11-30T13:32:26.446Z","dateUpdated":"2026-11-30T13:32:26.446Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.919Z"},"containers":{"cna":{"title":"cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"77d8acae37065b8c7a00543e0caea834de9cc837","versionType":"git"},{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"220c4130d3b49bbc669f96c03993d3874ab907d4","versionType":"git"},{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"69a75e4f377629928bd173747b864694c2af4e1c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cpuset.c","tools/testing/selftests/cgroup/test_cpuset_prs.sh"]},{"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","tools/testing/selftests/cgroup/test_cpuset_prs.sh"]}],"references":[{"url":"https://git.kernel.org/stable/c/77d8acae37065b8c7a00543e0caea834de9cc837"},{"url":"https://git.kernel.org/stable/c/220c4130d3b49bbc669f96c03993d3874ab907d4"},{"url":"https://git.kernel.org/stable/c/69a75e4f377629928bd173747b864694c2af4e1c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:26.446Z"},"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"}}}}}