CVE-2025-37980
JSON

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 packageVersionsReported by
Linux Linuxfrom 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_kernelfrom 3.13 before 6.6.88, from 6.7 before 6.12.25, from 6.13 before 6.14.4, 6.15NVD

Classification

CWE-401

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

SourceRecordLicence
CVE ListCVE-2025-37980 changed 2026-11-10CVE Terms of Use
NVDCVE-2025-37980 changed 2026-11-10Public domain