Bug 2367614 (CVE-2025-37980) - CVE-2025-37980 kernel: block: fix resource leak in blk_register_queue() error path
Summary: CVE-2025-37980 kernel: block: fix resource leak in blk_register_queue() error...
Keywords:
Status: NEW
Alias: CVE-2025-37980
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-20 18:01 UTC by OSIDB Bzimport
Modified: 2025-05-21 04:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-20 18:01:52 UTC
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.

Comment 1 Avinash Hanwate 2025-05-21 04:49:18 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025052040-CVE-2025-37980-561f@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.