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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-02-27T02:12:17.853Z
- Modified: 2026-11-10T13:17:34.337Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from ef45fe470e1e5410db4af87abc5d5055427945ac before ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; from ef45fe470e1e5410db4af87abc5d5055427945ac before 38287f779b34dfe959b4b681e909f2d3d52b88be; from ef45fe470e1e5410db4af87abc5d5055427945ac before 431b6ef2714be4d5babb802114987541a88b43b0; from ef45fe470e1e5410db4af87abc5d5055427945ac before 993121481b5a87829f1e8163f47158b72679f309; from ef45fe470e1e5410db4af87abc5d5055427945ac before 2ce09aabe009453d641a2ceb79e6461a2d4f3876; from ef45fe470e1e5410db4af87abc5d5055427945ac before 67c7f213e052b1aa6caba4a7e25e303bc6997126; from ef45fe470e1e5410db4af87abc5d5055427945ac before d1248436cbef1f924c04255367ff4845ccd9025e; 5.9 (not affected: before 5.9; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.78 up to 6.6.*; from 6.12.14 up to 6.12.*; from 6.13.3 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.9 before 6.1.129; from 6.2 before 6.6.78; from 6.7 before 6.12.14; from 6.13 before 6.13.3

## References

- <https://git.kernel.org/stable/c/ffb494f1e7a047bd7a41b13796fcfb08fe5beafb>
- <https://git.kernel.org/stable/c/38287f779b34dfe959b4b681e909f2d3d52b88be>
- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2025-21745](https://www.cve.org/CVERecord?id=CVE-2025-21745), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-21745](https://nvd.nist.gov/vuln/detail/CVE-2025-21745), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-21745 · Whole record: https://cve.day/CVE-2025-21745.json · Rebuilt by cve.day 2026-11-25T22:58:54.523Z
