5.5medium
block: fix resource leak in blk_register_queue() error path
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| 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 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bloque: corrección de fuga de recursos en la ruta de error blk_register_queue(). Si el registro de una cola falla después de que blk_mq_sysfs_register() se ejecute correctamente, pero la función detecta un error posteriormente, es necesario limpiar los recursos blk_mq_sysfs. Agregue la llamada blk_mq_sysfs_unregister() faltante en la ruta de error para limpiar correctamente estos recursos y evitar una fuga de memoria.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-37980 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2025-37980 changed 2026-11-10 | Public domain |