{"id":"CVE-2026-139192","state":"PUBLISHED","title":"cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()\n\nWith the introduction of cpuset.cpus.exclusive, the computation of\neffective_cpus differs depending on if a cpuset is a valid partition\nroot or not.\n\nIn update_cpumasks_hier(), effective_cpus is computed early\nto check if the current subtree can be skipped. Later on\nupdate_parent_effective_cpumask() may be called which can change the\npartition state from valid to invalid or vice versa. If the partition\nstate changes, the previously computed effective_cpus may no longer be\nvalid. Fix that by recomputing effective_cpus again when that happens.\n\nAlso add a new test case into test_cpuset_prs.sh to verify this change.","publishedAt":"2026-11-30T13:32:25.901Z","updatedAt":"2026-11-30T13:32:25.901Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"641635cbb850efb69e7b22f77efbc28adc317bfd","versionType":"git"},{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"d3873b45bea4cc99d135922cdc89841164f33855","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":"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/641635cbb850efb69e7b22f77efbc28adc317bfd","https://git.kernel.org/stable/c/d3873b45bea4cc99d135922cdc89841164f33855"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139192.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139192","state":"PUBLISHED","datePublished":"2026-11-30T13:32:25.901Z","dateUpdated":"2026-11-30T13:32:25.901Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.919Z"},"containers":{"cna":{"title":"cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()\n\nWith the introduction of cpuset.cpus.exclusive, the computation of\neffective_cpus differs depending on if a cpuset is a valid partition\nroot or not.\n\nIn update_cpumasks_hier(), effective_cpus is computed early\nto check if the current subtree can be skipped. Later on\nupdate_parent_effective_cpumask() may be called which can change the\npartition state from valid to invalid or vice versa. If the partition\nstate changes, the previously computed effective_cpus may no longer be\nvalid. Fix that by recomputing effective_cpus again when that happens.\n\nAlso add a new test case into test_cpuset_prs.sh to verify this change."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"641635cbb850efb69e7b22f77efbc28adc317bfd","versionType":"git"},{"version":"e2ffe502ba4505ee9c7b432980c702b7801a37f3","status":"affected","lessThan":"d3873b45bea4cc99d135922cdc89841164f33855","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":"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/641635cbb850efb69e7b22f77efbc28adc317bfd"},{"url":"https://git.kernel.org/stable/c/d3873b45bea4cc99d135922cdc89841164f33855"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:25.901Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"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"}}}}}