CVE-2025-37980

block: fix resource leak in blk_register_queue() error path

State
Published
Severity
Not scored
Published
May 20, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

block: fix resource leak in blk_register_queue() error path

When registering a queue fails after blk_mq_sysfs_register() is successful but the function later encounters an error, we need to clean up the blk_mq_sysfs resources.

Add the missing blk_mq_sysfs_unregister() call in the error path to properly clean up these resources and prevent a memory leak.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 320ae51feed5c2f13664aa05a76bec198967e04d to before 6af6d5feebf9423ab3b252831d1f52de31a8b5e0Affected
  • 320ae51feed5c2f13664aa05a76bec198967e04d to before 549cbbd14bbec12469ceb279b79c763c8a24224eAffected
  • 320ae51feed5c2f13664aa05a76bec198967e04d to before 41e43134ddda35949974be40520460a12dda3502Affected
  • 320ae51feed5c2f13664aa05a76bec198967e04d to before 55a7bb2708f7c7c5b366d4e40916113168a3824cAffected
  • 320ae51feed5c2f13664aa05a76bec198967e04d to before 40f2eb9b531475dd01b683fdaf61ca3cfd03a51eAffected
LinuxLinux
  • 3.13Affected
  • before 3.13Not affected
  • 6.1.168 through 6.1.*Not affected
  • 6.6.88 through 6.6.*Not affected
  • 6.12.25 through 6.12.*Not affected
  • 6.14.4 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.