# CVE-2025-37980: block: fix resource leak in blk_register_queue() error path

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-05-20T16:58:22.720Z
- Modified: 2026-11-10T13:17:45.467Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 320ae51feed5c2f13664aa05a76bec198967e04d before 6af6d5feebf9423ab3b252831d1f52de31a8b5e0; from 320ae51feed5c2f13664aa05a76bec198967e04d before 549cbbd14bbec12469ceb279b79c763c8a24224e; from 320ae51feed5c2f13664aa05a76bec198967e04d before 41e43134ddda35949974be40520460a12dda3502; from 320ae51feed5c2f13664aa05a76bec198967e04d before 55a7bb2708f7c7c5b366d4e40916113168a3824c; from 320ae51feed5c2f13664aa05a76bec198967e04d before 40f2eb9b531475dd01b683fdaf61ca3cfd03a51e; 3.13 (not affected: before 3.13; from 6.1.168 up to 6.1.*; from 6.6.88 up to 6.6.*; from 6.12.25 up to 6.12.*; from 6.14.4 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 3.13 before 6.6.88; from 6.7 before 6.12.25; from 6.13 before 6.14.4; 6.15

## References

- <https://git.kernel.org/stable/c/6af6d5feebf9423ab3b252831d1f52de31a8b5e0>
- <https://git.kernel.org/stable/c/549cbbd14bbec12469ceb279b79c763c8a24224e> (patch)
- <https://git.kernel.org/stable/c/41e43134ddda35949974be40520460a12dda3502> (patch)
- <https://git.kernel.org/stable/c/55a7bb2708f7c7c5b366d4e40916113168a3824c> (patch)
- <https://git.kernel.org/stable/c/40f2eb9b531475dd01b683fdaf61ca3cfd03a51e> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2025-37980](https://www.cve.org/CVERecord?id=CVE-2025-37980), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-37980](https://nvd.nist.gov/vuln/detail/CVE-2025-37980), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-37980 · Whole record: https://cve.day/CVE-2025-37980.json · Rebuilt by cve.day 2026-11-25T22:58:58.318Z
