{"id":"CVE-2025-21745","summary":"blk-cgroup: Fix class @block_class's subsystem refcount leakage","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-cgroup: Fix class @block_class's subsystem refcount leakage\n\nblkcg_fill_root_iostats() iterates over @block_class's devices by\nclass_dev_iter_(init|next)(), but does not end iterating with\nclass_dev_iter_exit(), so causes the class's subsystem refcount leakage.\n\nFix by ending the iterating with class_dev_iter_exit().","modified":"2026-04-02T12:45:12.195676Z","published":"2025-02-27T02:12:17.853Z","related":["ALSA-2025:20518","SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21745.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2ce09aabe009453d641a2ceb79e6461a2d4f3876"},{"type":"WEB","url":"https://git.kernel.org/stable/c/38287f779b34dfe959b4b681e909f2d3d52b88be"},{"type":"WEB","url":"https://git.kernel.org/stable/c/431b6ef2714be4d5babb802114987541a88b43b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/67c7f213e052b1aa6caba4a7e25e303bc6997126"},{"type":"WEB","url":"https://git.kernel.org/stable/c/993121481b5a87829f1e8163f47158b72679f309"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1248436cbef1f924c04255367ff4845ccd9025e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ffb494f1e7a047bd7a41b13796fcfb08fe5beafb"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21745.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21745"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ef45fe470e1e5410db4af87abc5d5055427945ac"},{"fixed":"ffb494f1e7a047bd7a41b13796fcfb08fe5beafb"},{"fixed":"38287f779b34dfe959b4b681e909f2d3d52b88be"},{"fixed":"431b6ef2714be4d5babb802114987541a88b43b0"},{"fixed":"993121481b5a87829f1e8163f47158b72679f309"},{"fixed":"2ce09aabe009453d641a2ceb79e6461a2d4f3876"},{"fixed":"67c7f213e052b1aa6caba4a7e25e303bc6997126"},{"fixed":"d1248436cbef1f924c04255367ff4845ccd9025e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21745.json"}}],"schema_version":"1.7.5"}