# CVE-2023-52942: cgroup/cpuset: Fix wrong check in update_parent_subparts_cpumask()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-03-27T16:37:20.155Z
- Modified: 2026-11-05T21:17:06.017Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

cgroup/cpuset: Fix wrong check in update_parent_subparts_cpumask()

It was found that the check to see if a partition could use up all
the cpus from the parent cpuset in update_parent_subparts_cpumask()
was incorrect. As a result, it is possible to leave parent with no
effective cpu left even if there are tasks in the parent cpuset. This
can lead to system panic as reported in [1].

Fix this probem by updating the check to fail the enabling the partition
if parent's effective_cpus is a subset of the child's cpus_allowed.

Also record the error code when an error happens in update_prstate()
and add a test case where parent partition and child have the same cpu
list and parent has task. Enabling partition in the child will fail in
this case.

[1] https://www.spinics.net/lists/cgroups/msg36254.html

(As written by CVE List.)

## Affected

- Linux Linux: from f0af1bfc27b52a4d42510051154c61bd176a8f06 before a2ab7f2cf5ef8f0c6212a246e681d1fe358cec1f; from f0af1bfc27b52a4d42510051154c61bd176a8f06 before e5ae8803847b80fe9d744a3174abe2b7bfed222a; 6.1 (not affected: before 6.1; from 6.1.11 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 6.1 before 6.1.11; 6.2

## References

- <https://git.kernel.org/stable/c/a2ab7f2cf5ef8f0c6212a246e681d1fe358cec1f> (patch)
- <https://git.kernel.org/stable/c/e5ae8803847b80fe9d744a3174abe2b7bfed222a> (patch)

## Sources

- CVE List: [CVE-2023-52942](https://www.cve.org/CVERecord?id=CVE-2023-52942), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2023-52942](https://nvd.nist.gov/vuln/detail/CVE-2023-52942), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2023-52942 · Whole record: https://cve.day/CVE-2023-52942.json · Rebuilt by cve.day 2026-11-25T22:58:34.579Z
