Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-21745

MEDIUM 5.5EPSS 18%

blk-cgroup: Fix class @block_class's subsystem refcount leakage

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= ef45fe470e1e5410db4af87abc5d5055427945ac, < ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 38287f779b34dfe959b4b681e909f2d3d52b88be; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 431b6ef2714be4d5babb802114987541a88b43b0; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 993121481b5a87829f1e8163f47158b72679f309; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 2ce09aabe009453d641a2ceb79e6461a2d4f3876; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 67c7f213e052b1aa6caba4a7e25e303bc6997126; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < d1248436cbef1f924c04255367ff4845ccd9025e
  • Anyone running Linux 5.9

Vulnerability facts

Affected
Linux >= ef45fe470e1e5410db4af87abc5d5055427945ac, < ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 38287f779b34dfe959b4b681e909f2d3d52b88be; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 431b6ef2714be4d5babb802114987541a88b43b0; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 993121481b5a87829f1e8163f47158b72679f309; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 2ce09aabe009453d641a2ceb79e6461a2d4f3876; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 67c7f213e052b1aa6caba4a7e25e303bc6997126; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < d1248436cbef1f924c04255367ff4845ccd9025e; Linux 5.9
Fixed in
Linux 38287f779b34dfe959b4b681e909f2d3d52b88be, Linux 431b6ef2714be4d5babb802114987541a88b43b0, Linux 993121481b5a87829f1e8163f47158b72679f309, Linux 2ce09aabe009453d641a2ceb79e6461a2d4f3876, Linux 67c7f213e052b1aa6caba4a7e25e303bc6997126
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
Published
Modified

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

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= ef45fe470e1e5410db4af87abc5d5055427945ac, < ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 38287f779b34dfe959b4b681e909f2d3d52b88be; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 431b6ef2714be4d5babb802114987541a88b43b0; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 993121481b5a87829f1e8163f47158b72679f309; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 2ce09aabe009453d641a2ceb79e6461a2d4f3876; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 67c7f213e052b1aa6caba4a7e25e303bc6997126; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < d1248436cbef1f924c04255367ff4845ccd9025e—cvelist
Linux5.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-21745. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21745.md
Affected: Linux >= ef45fe470e1e5410db4af87abc5d5055427945ac, < ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 38287f779b34dfe959b4b681e909f2d3d52b88be; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 431b6ef2714be4d5babb802114987541a88b43b0; >= ef45fe470e1e5410db4af87…
Fixed in: Linux 38287f779b34dfe959b4b681e909f2d3d52b88be, Linux 431b6ef2714be4d5babb802114987541a88b43b0, Linux 993121481b5a87829f1e8163f47158b72679f309, Linux 2ce09aabe009453d641a2ceb79e6461a2d4f3876, Linux 67c7f213e052b1aa6caba4a7e25e303bc6997126

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-21745 being exploited?

There is no confirmed exploitation: CVE-2025-21745 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-21745?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-21745?

Linux >= ef45fe470e1e5410db4af87abc5d5055427945ac, < ffb494f1e7a047bd7a41b13796fcfb08fe5beafb; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 38287f779b34dfe959b4b681e909f2d3d52b88be; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 431b6ef2714be4d5babb802114987541a88b43b0; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 993121481b5a87829f1e8163f47158b72679f309; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 2ce09aabe009453d641a2ceb79e6461a2d4f3876; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < 67c7f213e052b1aa6caba4a7e25e303bc6997126; >= ef45fe470e1e5410db4af87abc5d5055427945ac, < d1248436cbef1f924c04255367ff4845ccd9025e; Linux 5.9.

Is there a fix for CVE-2025-21745?

Yes. Fixed in Linux 38287f779b34dfe959b4b681e909f2d3d52b88be, Linux 431b6ef2714be4d5babb802114987541a88b43b0, Linux 993121481b5a87829f1e8163f47158b72679f309, Linux 2ce09aabe009453d641a2ceb79e6461a2d4f3876, Linux 67c7f213e052b1aa6caba4a7e25e303bc6997126. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2025-21745?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors