# CVE-2025-21634: cgroup/cpuset: remove kernfs active break

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-01-19T10:17:52.983Z
- **Modified:** 2026-06-17T08:43:53.667Z

## Who should check

- Anyone running Linux \>= 76bb5ab8f6e3e7bebdcefec4146ff305e7d0b465, \< 11cb1d643a74665a4e14749414f48f82cbc15c64; \>= 76bb5ab8f6e3e7bebdcefec4146ff305e7d0b465, \< 3cb97a927fffe443e1e7e8eddbfebfdb062e86ed
- Anyone running Linux 3.16

## Description

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

cgroup/cpuset: remove kernfs active break

A warning was found:

WARNING: CPU: 10 PID: 3486953 at fs/kernfs/file.c:828
CPU: 10 PID: 3486953 Comm: rmdir Kdump: loaded Tainted: G
RIP: 0010:kernfs\_should\_drain\_open\_files+0x1a1/0x1b0
RSP: 0018:ffff8881107ef9e0 EFLAGS: 00010202
RAX: 0000000080000002 RBX: ffff888154738c00 RCX: dffffc0000000000
RDX: 0000000000000007 RSI: 0000000000000004 RDI: ffff888154738c04
RBP: ffff888154738c04 R08: ffffffffaf27fa15 R09: ffffed102a8e7180
R10: ffff888154738c07 R11: 0000000000000000 R12: ffff888154738c08
R13: ffff888750f8c000 R14: ffff888750f8c0e8 R15: ffff888154738ca0
FS:  00007f84cd0be740(0000) GS:ffff8887ddc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555f9fbe00c8 CR3: 0000000153eec001 CR4: 0000000000370ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kernfs\_drain+0x15e/0x2f0
 \_\_kernfs\_remove+0x165/0x300
 kernfs\_remove\_by\_name\_ns+0x7b/0xc0
 cgroup\_rm\_file+0x154/0x1c0
 cgroup\_addrm\_files+0x1c2/0x1f0
 css\_clear\_dir+0x77/0x110
 kill\_css+0x4c/0x1b0
 cgroup\_destroy\_locked+0x194/0x380
 cgroup\_rmdir+0x2a/0x140

It can be explained by:
rmdir 				echo 1 \> cpuset.cpus
				kernfs\_fop\_write\_iter // active=0
cgroup\_rm\_file
kernfs\_remove\_by\_name\_ns	kernfs\_get\_active // active=1
\_\_kernfs\_remove					  // active=0x80000002
kernfs\_drain			cpuset\_write\_resmask
wait\_event
//waiting (active == 0x80000001)
				kernfs\_break\_active\_protection
				// active = 0x80000001
// continue
				kernfs\_unbreak\_active\_protection
				// active = 0x80000002
...
kernfs\_should\_drain\_open\_files
// warning occurs
				kernfs\_put\_active

This warning is caused by 'kernfs\_break\_active\_protection' when it is
writing to cpuset.cpus, and the cgroup is removed concurrently.

The commit 3a5a6d0c2b03 ("cpuset: don't nest cgroup\_mutex inside
get\_online\_cpus()") made cpuset\_hotplug\_workfn asynchronous, This change
involves calling flush\_work(), which can create a multiple processes
circular locking dependency that involve cgroup\_mutex, potentially leading
to a deadlock. To avoid deadlock. the commit 76bb5ab8f6e3 ("cpuset: break
kernfs active protection in cpuset\_write\_resmask()") added
'kernfs\_break\_active\_protection' in the cpuset\_write\_resmask. This could
lead to this warning.

After the commit 2125c0034c5d ("cgroup/cpuset: Make cpuset hotplug
processing synchronous"), the cpuset\_write\_resmask no longer needs to
wait the hotplug to finish, which means that concurrent hotplug and cpuset
operations are no longer possible. Therefore, the deadlock doesn't exist
anymore and it does not have to 'break active protection' now. To fix this
warning, just remove kernfs\_break\_active\_protection operation in the
'cpuset\_write\_resmask'.

## Affected and fixed versions

- Linux: \>= 76bb5ab8f6e3e7bebdcefec4146ff305e7d0b465, \< 11cb1d643a74665a4e14749414f48f82cbc15c64; \>= 76bb5ab8f6e3e7bebdcefec4146ff305e7d0b465, \< 3cb97a927fffe443e1e7e8eddbfebfdb062e86ed (cvelist)
- Linux: 3.16 (cvelist)

## Mitigation

- Upgrade Linux to 3cb97a927fffe443e1e7e8eddbfebfdb062e86ed or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-21634.md
Affected: Linux >= 76bb5ab8f6e3e7bebdcefec4146ff305e7d0b465, < 11cb1d643a74665a4e14749414f48f82cbc15c64; >= 76bb5ab8f6e3e7bebdcefec4146ff305e7d0b465, < 3cb97a927fffe443e1e7e8eddbfebfdb062e86ed; Linux 3.16
Fixed in: Linux 11cb1d643a74665a4e14749414f48f82cbc15c64, Linux 3cb97a927fffe443e1e7e8eddbfebfdb062e86ed

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-2025-21634 being exploited?

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

### How serious is CVE-2025-21634?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21634?

Linux \>= 76bb5ab8f6e3e7bebdcefec4146ff305e7d0b465, \< 11cb1d643a74665a4e14749414f48f82cbc15c64; \>= 76bb5ab8f6e3e7bebdcefec4146ff305e7d0b465, \< 3cb97a927fffe443e1e7e8eddbfebfdb062e86ed; Linux 3.16.

### Is there a fix for CVE-2025-21634?

Yes. Fixed in Linux 11cb1d643a74665a4e14749414f48f82cbc15c64, Linux 3cb97a927fffe443e1e7e8eddbfebfdb062e86ed. Upgrade Linux to 3cb97a927fffe443e1e7e8eddbfebfdb062e86ed or later.

### How do I check if I'm affected by CVE-2025-21634?

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/11cb1d643a74665a4e14749414f48f82cbc15c64>
- patch: <https://git.kernel.org/stable/c/3cb97a927fffe443e1e7e8eddbfebfdb062e86ed>

## 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-2025-21634>

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