CVE-2025-21745
blk-cgroup: Fix class @block_class's subsystem refcount leakage
Reported by linux · Published February 27, 2025
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().
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools | Amazon Linux | 6.1.129-138.220.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.129-138.220.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.129-138.220.amzn2023 |
| kernel-livepatch-6.1.129-138.220 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.129-138.220.amzn2023 |
| linux_kernel | linux | 6.13.3, 6.12.14, 6.6.78, 6.1.129 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | ef45fe470e1e5410db4af87abc5d5055427945ac, ef45fe470e1e5410db4af87abc5d5055427945ac, ef45fe470e1e5410db4af87abc5d5055427945ac |
| Linux | Linux | 5.9, 0, 5.10.235 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.5, 3.1.6, 3.1.7 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.5, 3.1.7, 3.1.6 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | 3.1.7, 3.1.5, 3.1.6 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.5, 3.1.7, 3.1.6 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.129-138.220 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| linux | linux_kernel | 5.9, 5.9, 5.9 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.7, 3.1.5, 3.1.6 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5, 3.1.7, 3.1.6 |
| Linux | Linux | 6.14, *, * |
…and 7 more
Timeline
- Feb 26, 2025 CVE Published
- Feb 27, 2025 EPSS Score (30 in total, the first dated here)
- Mar 11, 2025 Coalition ESS Score (12 in total, the first dated here)
- Dec 18, 2025 PoC Published
- Dec 22, 2025 Security Advisory (389 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (342 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-21745
vulnetix vdb fixes CVE-2025-21745
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21745/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html url
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html url
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html url
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html url
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html url
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html url
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html url