{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139193",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.919Z",
        "datePublished": "2026-11-30T13:32:26.446Z",
        "dateUpdated": "2026-11-30T13:32:26.446Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:32:26.446Z"
            },
            "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": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "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"
                    ],
                    "versions": [
                        {
                            "version": "e2ffe502ba4505ee9c7b432980c702b7801a37f3",
                            "lessThan": "77d8acae37065b8c7a00543e0caea834de9cc837",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e2ffe502ba4505ee9c7b432980c702b7801a37f3",
                            "lessThan": "220c4130d3b49bbc669f96c03993d3874ab907d4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e2ffe502ba4505ee9c7b432980c702b7801a37f3",
                            "lessThan": "69a75e4f377629928bd173747b864694c2af4e1c",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "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"
                    ],
                    "versions": [
                        {
                            "version": "6.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.7",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "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"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
                }
            ],
            "title": "cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}