CVE-2025-37980

block: fix resource leak in blk_register_queue() error path

MEDIUM
5.5
CVSS Score
Published: May 20, 2025 at 04:58 PM UTC
Updated: October 15, 2026 at 02:17 AM UTC
4 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSiplus S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.13 ≤ v < 6.6.886.13 ≤ v < 6.14.46.7 ≤ v < 6.12.253.13320ae51feed5c2f13664aa05a76bec198967e04d6.156.15 rc16.15 rc2
Vendor states this is fixed in 40f2eb9b531475dd01b683fdaf61ca3cfd03a51e (fixed)
Vendor states this is fixed in 41e43134ddda35949974be40520460a12dda3502 (fixed)
Vendor states this is fixed in 549cbbd14bbec12469ceb279b79c763c8a24224e (fixed)
Vendor states this is fixed in 55a7bb2708f7c7c5b366d4e40916113168a3824c (fixed)
Vendor states this is fixed in 6af6d5feebf9423ab3b252831d1f52de31a8b5e0 (fixed)
Vendor states this is fixed in 3.13 (unaffected)
Vendor states this is fixed in 6.1.168 (unaffected)
Vendor states this is fixed in 6.12.25 (unaffected)
Vendor states this is fixed in 6.14.4 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.88 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card