{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e2ffe502ba4505ee9c7b432980c702b7801a37f3"
            },
            {
              "fixed": "77d8acae37065b8c7a00543e0caea834de9cc837"
            },
            {
              "fixed": "220c4130d3b49bbc669f96c03993d3874ab907d4"
            },
            {
              "fixed": "69a75e4f377629928bd173747b864694c2af4e1c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139193.json"
  },
  "details": "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.",
  "id": "CVE-2026-139193",
  "modified": "2026-12-01T20:45:49.397468851Z",
  "published": "2026-11-30T13:32:26.446Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/220c4130d3b49bbc669f96c03993d3874ab907d4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/69a75e4f377629928bd173747b864694c2af4e1c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/77d8acae37065b8c7a00543e0caea834de9cc837"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139193.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139193"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()"
}