# CVE-2024-43853: cgroup/cpuset: Prevent UAF in proc\_cpuset\_show()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-08-17T09:22:10.534Z
- **Modified:** 2026-08-05T11:36:48.073Z

## Who should check

- Anyone running Linux \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 27d6dbdc6485d68075a0ebf8544d6425c1ed84bb; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 10aeaa47e4aa2432f29b3e5376df96d7dac5537a; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 688325078a8b5badd6e07ae22b27cd04e9947aec; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 4e8d6ac8fc9f843e940ab7389db8136634e07989; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 29a8d4e02fd4840028c38ceb1536cc8f82a257d4; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 96226fbed566f3f686f53a489a29846f2d538080; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 29ac1d238b3bf126af36037df80d7ecc4822341e; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 1be59c97c83ccd67a519d8a49486b3a8a73ca28a
- Anyone running Linux 4.6

## Description

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

cgroup/cpuset: Prevent UAF in proc\_cpuset\_show()

An UAF can happen when /proc/cpuset is read as reported in \[1\].

This can be reproduced by the following methods:
1.add an mdelay(1000) before acquiring the cgroup\_lock In the
 cgroup\_path\_ns function.
2.$cat /proc/\<pid\>/cpuset   repeatly.
3.$mount -t cgroup -o cpuset cpuset /sys/fs/cgroup/cpuset/
$umount /sys/fs/cgroup/cpuset/   repeatly.

The race that cause this bug can be shown as below:

(umount)		\|	(cat /proc/\<pid\>/cpuset)
css\_release		\|	proc\_cpuset\_show
css\_release\_work\_fn	\|	css = task\_get\_css(tsk, cpuset\_cgrp\_id);
css\_free\_rwork\_fn	\|	cgroup\_path\_ns(css-\>cgroup, ...);
cgroup\_destroy\_root	\|	mutex\_lock(&cgroup\_mutex);
rebind\_subsystems	\|
cgroup\_free\_root 	\|
			\|	// cgrp was freed, UAF
			\|	cgroup\_path\_ns\_locked(cgrp,..);

When the cpuset is initialized, the root node top\_cpuset.css.cgrp
will point to &cgrp\_dfl\_root.cgrp. In cgroup v1, the mount operation will
allocate cgroup\_root, and top\_cpuset.css.cgrp will point to the allocated
&cgroup\_root.cgrp. When the umount operation is executed,
top\_cpuset.css.cgrp will be rebound to &cgrp\_dfl\_root.cgrp.

The problem is that when rebinding to cgrp\_dfl\_root, there are cases
where the cgroup\_root allocated by setting up the root for cgroup v1
is cached. This could lead to a Use-After-Free (UAF) if it is
subsequently freed. The descendant cgroups of cgroup v1 can only be
freed after the css is released. However, the css of the root will never
be released, yet the cgroup\_root should be freed when it is unmounted.
This means that obtaining a reference to the css of the root does
not guarantee that css.cgrp-\>root will not be freed.

Fix this problem by using rcu\_read\_lock in proc\_cpuset\_show().
As cgroup\_root is kfree\_rcu after commit d23b5c577715
("cgroup: Make operations on the cgroup root\_list RCU safe"),
css-\>cgroup won't be freed during the critical section.
To call cgroup\_path\_ns\_locked, css\_set\_lock is needed, so it is safe to
replace task\_get\_css with task\_css.

\[1\] https://syzkaller.appspot.com/bug?extid=9b1ff7be974a403aa4cd

## Affected and fixed versions

- Linux: \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 27d6dbdc6485d68075a0ebf8544d6425c1ed84bb; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 10aeaa47e4aa2432f29b3e5376df96d7dac5537a; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 688325078a8b5badd6e07ae22b27cd04e9947aec; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 4e8d6ac8fc9f843e940ab7389db8136634e07989; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 29a8d4e02fd4840028c38ceb1536cc8f82a257d4; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 96226fbed566f3f686f53a489a29846f2d538080; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 29ac1d238b3bf126af36037df80d7ecc4822341e; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 1be59c97c83ccd67a519d8a49486b3a8a73ca28a (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- Upgrade Linux to 1be59c97c83ccd67a519d8a49486b3a8a73ca28a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-43853. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-43853.md
Affected: Linux >= a79a908fd2b080977b45bf103184b81c9d11ad07, < 27d6dbdc6485d68075a0ebf8544d6425c1ed84bb; >= a79a908fd2b080977b45bf103184b81c9d11ad07, < 10aeaa47e4aa2432f29b3e5376df96d7dac5537a; >= a79a908fd2b080977b45bf103184b81c9d11ad07, < 688325078a8b5badd6e07ae22b27cd04e9947aec; >= a79a908fd2b080977b45bf1…
Fixed in: Linux 27d6dbdc6485d68075a0ebf8544d6425c1ed84bb, Linux 10aeaa47e4aa2432f29b3e5376df96d7dac5537a, Linux 688325078a8b5badd6e07ae22b27cd04e9947aec, Linux 4e8d6ac8fc9f843e940ab7389db8136634e07989, Linux 29a8d4e02fd4840028c38ceb1536cc8f82a257d4, Linux 96226fbed566f3f686f53a489a29846f2d538080, Linux 29ac1…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-43853 being exploited?

There is no confirmed exploitation: CVE-2024-43853 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-43853?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-43853?

Linux \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 27d6dbdc6485d68075a0ebf8544d6425c1ed84bb; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 10aeaa47e4aa2432f29b3e5376df96d7dac5537a; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 688325078a8b5badd6e07ae22b27cd04e9947aec; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 4e8d6ac8fc9f843e940ab7389db8136634e07989; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 29a8d4e02fd4840028c38ceb1536cc8f82a257d4; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 96226fbed566f3f686f53a489a29846f2d538080; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 29ac1d238b3bf126af36037df80d7ecc4822341e; \>= a79a908fd2b080977b45bf103184b81c9d11ad07, \< 1be59c97c83ccd67a519d8a49486b3a8a73ca28a; Linux 4.6.

### Is there a fix for CVE-2024-43853?

Yes. Fixed in Linux 27d6dbdc6485d68075a0ebf8544d6425c1ed84bb, Linux 10aeaa47e4aa2432f29b3e5376df96d7dac5537a, Linux 688325078a8b5badd6e07ae22b27cd04e9947aec, Linux 4e8d6ac8fc9f843e940ab7389db8136634e07989, Linux 29a8d4e02fd4840028c38ceb1536cc8f82a257d4, Linux 96226fbed566f3f686f53a489a29846f2d538080, Linux 29ac1d238b3bf126af36037df80d7ecc4822341e, Linux 1be59c97c83ccd67a519d8a49486b3a8a73ca28a. Upgrade Linux to 1be59c97c83ccd67a519d8a49486b3a8a73ca28a or later.

### How do I check if I'm affected by CVE-2024-43853?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/29a8d4e02fd4840028c38ceb1536cc8f82a257d4>
- patch: <https://git.kernel.org/stable/c/96226fbed566f3f686f53a489a29846f2d538080>
- patch: <https://git.kernel.org/stable/c/29ac1d238b3bf126af36037df80d7ecc4822341e>
- patch: <https://git.kernel.org/stable/c/1be59c97c83ccd67a519d8a49486b3a8a73ca28a>
- other: <https://git.kernel.org/stable/c/27d6dbdc6485d68075a0ebf8544d6425c1ed84bb>
- other: <https://git.kernel.org/stable/c/10aeaa47e4aa2432f29b3e5376df96d7dac5537a>
- other: <https://git.kernel.org/stable/c/688325078a8b5badd6e07ae22b27cd04e9947aec>
- other: <https://git.kernel.org/stable/c/4e8d6ac8fc9f843e940ab7389db8136634e07989>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-43853>

HTML: <https://flawdb.com/CVE-2024-43853> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-43853>
