CVE-2025-21745
blk-cgroup: Fix class @block_class's subsystem refcount leakage
Check your servers for CVE-2025-21745
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21745 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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().
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.1% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ef45fe470e1e5410db4af87abc5d5055427945ac, before ffb494f1e7a047bd7a41b13796fcfb08fe5beafb affected from ef45fe470e1e5410db4af87abc5d5055427945ac, before 38287f779b34dfe959b4b681e909f2d3d52b88be affected from ef45fe470e1e5410db4af87abc5d5055427945ac, before 431b6ef2714be4d5babb802114987541a88b43b0 affected from ef45fe470e1e5410db4af87abc5d5055427945ac, before 993121481b5a87829f1e8163f47158b72679f309 affected from ef45fe470e1e5410db4af87abc5d5055427945ac, before 2ce09aabe009453d641a2ceb79e6461a2d4f3876 affected from ef45fe470e1e5410db4af87abc5d5055427945ac, before 67c7f213e052b1aa6caba4a7e25e303bc6997126 affected from ef45fe470e1e5410db4af87abc5d5055427945ac, before d1248436cbef1f924c04255367ff4845ccd9025e
Other versions: unaffected
|
| Linux |
affected 5.9 unaffected before 5.9 unaffected from 5.10.235 up to and including 5.10.* unaffected from 5.15.179 up to and including 5.15.* unaffected from 6.1.129 up to and including 6.1.* unaffected from 6.6.78 up to and including 6.6.* unaffected from 6.12.14 up to and including 6.12.* unaffected from 6.13.3 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21745 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21745
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21745
trivy image --scanners vuln IMAGE | grep CVE-2025-21745
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/ffb494f1e7a047bd7a41b13796fcfb08fe5beafb git.kernel.org
- https://git.kernel.org/stable/c/38287f779b34dfe959b4b681e909f2d3d52b88be git.kernel.org
- https://git.kernel.org/stable/c/431b6ef2714be4d5babb802114987541a88b43b0 git.kernel.org
- https://git.kernel.org/stable/c/993121481b5a87829f1e8163f47158b72679f309 git.kernel.org
- https://git.kernel.org/stable/c/2ce09aabe009453d641a2ceb79e6461a2d4f3876 git.kernel.org
- https://git.kernel.org/stable/c/67c7f213e052b1aa6caba4a7e25e303bc6997126 git.kernel.org
- https://git.kernel.org/stable/c/d1248436cbef1f924c04255367ff4845ccd9025e git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2025-21745 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse