VDB

CVE-2025-21745

CVE-2025-21745 PUBLISHED

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.

PackageEcosystemFixed in
kernel-toolsAmazon Linux6.1.129-138.220.amzn2023
kernel-libbpf-staticAmazon Linux6.1.129-138.220.amzn2023
kernel-libbpf-develAmazon Linux6.1.129-138.220.amzn2023
kernel-livepatch-6.1.129-138.220Amazon Linux1.0-0.amzn2023
kernel-modules-extraAmazon Linux6.1.129-138.220.amzn2023
linux_kernellinux6.13.3, 6.12.14, 6.6.78, 6.1.129

Affected products

VendorProductVersions
LinuxLinuxef45fe470e1e5410db4af87abc5d5055427945ac, ef45fe470e1e5410db4af87abc5d5055427945ac, ef45fe470e1e5410db4af87abc5d5055427945ac
LinuxLinux5.9, 0, 5.10.235
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.5, 3.1.6, 3.1.7
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.5, 3.1.7, 3.1.6
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)3.1.7, 3.1.5, 3.1.6
amazon:2023kernel-tools0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.5, 3.1.7, 3.1.6
amazon:2023kernel-libbpf-static0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-livepatch-6.1.129-138.2200
amazon:2023kernel-modules-extra0
linuxlinux_kernel5.9, 5.9, 5.9
amazon:2023kernel0
amazon:2023kernel-libbpf0
amazon:2023python3-perf0
amazon:2023kernel-tools-devel0
amazon:2023kernel-headers0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.7, 3.1.5, 3.1.6
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.5, 3.1.7, 3.1.6
LinuxLinux6.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›