CVE-2025-37980 block: fix resource leak in blk_register_queue() error path
A resource leak in the Linux kernel block layer error path can lead to memory exhaustion and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-37980?
CVE-2025-37980 is a medium-severity denial of service vulnerability in Linux kernel, published on 20 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-401
Which versions are affected by CVE-2025-37980?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-37980?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-37980 being exploited?
There is no known exploitation of CVE-2025-37980 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-70262, BELL-CVE-2025-37980, DEBIAN-CVE-2025-37980, GHSA-3hqw-p326-56f7, ROOT-OS-DEBIAN-11-CVE-2025-37980, ROOT-OS-DEBIAN-12-CVE-2025-37980 and 3 more.