# CVE-2025-21745: blk-cgroup: Fix class @block\_class's subsystem refcount leakage

> 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, NVD) `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.32% (percentile 18, 2026-11-26)
- **Published:** 2025-02-27T02:12:17.853Z
- **Modified:** 2026-11-10T13:17:34.337Z

## Who should check

- Anyone running Linux \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 38287f779b34dfe959b4b681e909f2d3d52b88be; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 431b6ef2714be4d5babb802114987541a88b43b0; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 993121481b5a87829f1e8163f47158b72679f309; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 2ce09aabe009453d641a2ceb79e6461a2d4f3876; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 67c7f213e052b1aa6caba4a7e25e303bc6997126; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< d1248436cbef1f924c04255367ff4845ccd9025e
- Anyone running Linux 5.9

## Description

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

blk-cgroup: Fix class @block\_class's subsystem refcount leakage

blkcg\_fill\_root\_iostats() iterates over @block\_class's devices by
class\_dev\_iter\_(init\|next)(), but does not end iterating with
class\_dev\_iter\_exit(), so causes the class's subsystem refcount leakage.

Fix by ending the iterating with class\_dev\_iter\_exit().

## Affected and fixed versions

- Linux: \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 38287f779b34dfe959b4b681e909f2d3d52b88be; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 431b6ef2714be4d5babb802114987541a88b43b0; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 993121481b5a87829f1e8163f47158b72679f309; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 2ce09aabe009453d641a2ceb79e6461a2d4f3876; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 67c7f213e052b1aa6caba4a7e25e303bc6997126; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< d1248436cbef1f924c04255367ff4845ccd9025e (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-21745.md
Affected: Linux >= ef45fe470e1e5410db4af87abc5d5055427945ac, < ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 38287f779b34dfe959b4b681e909f2d3d52b88be; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 431b6ef2714be4d5babb802114987541a88b43b0; >= ef45fe470e1e5410db4af87…
Fixed in: Linux 38287f779b34dfe959b4b681e909f2d3d52b88be, Linux 431b6ef2714be4d5babb802114987541a88b43b0, Linux 993121481b5a87829f1e8163f47158b72679f309, Linux 2ce09aabe009453d641a2ceb79e6461a2d4f3876, Linux 67c7f213e052b1aa6caba4a7e25e303bc6997126

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-21745 being exploited?

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

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

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

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

Linux \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 38287f779b34dfe959b4b681e909f2d3d52b88be; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 431b6ef2714be4d5babb802114987541a88b43b0; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 993121481b5a87829f1e8163f47158b72679f309; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 2ce09aabe009453d641a2ceb79e6461a2d4f3876; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< 67c7f213e052b1aa6caba4a7e25e303bc6997126; \>= ef45fe470e1e5410db4af87abc5d5055427945ac, \< d1248436cbef1f924c04255367ff4845ccd9025e; Linux 5.9.

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

Yes. Fixed in Linux 38287f779b34dfe959b4b681e909f2d3d52b88be, Linux 431b6ef2714be4d5babb802114987541a88b43b0, Linux 993121481b5a87829f1e8163f47158b72679f309, Linux 2ce09aabe009453d641a2ceb79e6461a2d4f3876, Linux 67c7f213e052b1aa6caba4a7e25e303bc6997126. No fix listed yet: follow the vendor advisory.

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

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/431b6ef2714be4d5babb802114987541a88b43b0>
- patch: <https://git.kernel.org/stable/c/993121481b5a87829f1e8163f47158b72679f309>
- patch: <https://git.kernel.org/stable/c/2ce09aabe009453d641a2ceb79e6461a2d4f3876>
- patch: <https://git.kernel.org/stable/c/67c7f213e052b1aa6caba4a7e25e303bc6997126>
- patch: <https://git.kernel.org/stable/c/d1248436cbef1f924c04255367ff4845ccd9025e>
- other: <https://git.kernel.org/stable/c/ffb494f1e7a047bd7a41b13796fcfb08fe5beafb>
- other: <https://git.kernel.org/stable/c/38287f779b34dfe959b4b681e909f2d3d52b88be>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.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-2025-21745>

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