CVE-2023-52942

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52942
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52942.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52942
Downstream
Published
2025-03-27T16:37:20Z
Modified
2025-10-16T14:02:51.176264Z
Summary
cgroup/cpuset: Fix wrong check in update_parent_subparts_cpumask()
Details

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

cgroup/cpuset: Fix wrong check in updateparentsubparts_cpumask()

It was found that the check to see if a partition could use up all the cpus from the parent cpuset in updateparentsubparts_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 effectivecpus is a subset of the child's cpusallowed.

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

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f0af1bfc27b52a4d42510051154c61bd176a8f06
Fixed
a2ab7f2cf5ef8f0c6212a246e681d1fe358cec1f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f0af1bfc27b52a4d42510051154c61bd176a8f06
Fixed
e5ae8803847b80fe9d744a3174abe2b7bfed222a

Affected versions

v6.*

v6.0
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1
v6.1.10
v6.1.2
v6.1.3
v6.1.4
v6.1.5
v6.1.6
v6.1.7
v6.1.8
v6.1.9
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.2-rc6

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.11