Junglewise Threat Intelligence

CVE-2025-21745: Linux Kernel refcount leakage in blk-cgroup

CVE-2025-21745 · Severity: medium · CVSS 5.5 · Published 2025-02-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's block control group (blk-cgroup) component could allow a local user to cause a system resource leak. Specifically, the system fails to properly release references to block devices when gathering input/output statistics. Over time, this 'refcount leakage' can prevent system components from being properly shut down or reconfigured, potentially leading to a denial-of-service condition where the system becomes unstable or fails to manage storage resources.

Technical details

A reference count leak exists in the Linux kernel's block control group (blk-cgroup) subsystem. The function blkcg_fill_root_iostats() iterates over devices in @block_class using class_dev_iter_init() and class_dev_iter_next(), but fails to call class_dev_iter_exit() upon completion. This omission prevents the subsystem's reference counter from being decremented correctly. An attacker with local access could potentially exploit this to cause a denial-of-service by exhausting system resources or preventing the proper release of kernel structures. The issue has been resolved in various stable branches including 6.1.129, 6.6.78, 6.12.14, and 6.13.3.

Affected products

  • Linux Linux Kernel 5.9 to 6.1.129, 6.2 to 6.6.78, 6.7 to 6.12.14, 6.13 to 6.13.3

Timeline

  • 2025-01-05: other: Patch authored
  • 2025-02-17: patched: Patch committed to stable trees
  • 2025-02-27: advisory: NVD advisory published

References

Related threats