CVE-2021-47075
JSON

5.3medium

nvmet: fix memory leak in nvmet_alloc_ctrl()

Severity
5.3medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.91% (higher than 60% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: nvmet: fix memory leak in nvmet_alloc_ctrl() When creating ctrl in nvmet_alloc_ctrl(), if the cntlid_min is larger than cntlid_max of the subsystem, and jumps to the "out_free_changed_ns_list" label, but the ctrl->sqs lack of be freed. Fix this by jumping to the "out_free_sqs" label.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 94a39d61f80fcd679debda11e1ca02b88d90e67e before 4720f29acb3fe67aa8aa71e6b675b079d193aaeb, from 94a39d61f80fcd679debda11e1ca02b88d90e67e before afb680ed7ecbb7fd66ddb43650e9b533fd8b4b9a, from 94a39d61f80fcd679debda11e1ca02b88d90e67e before fec356a61aa3d3a66416b4321f1279e09e0f256f, 5.7
Not affected: before 5.7, from 5.10.40 up to 5.10.*, from 5.12.7 up to 5.12.*, from 5.13 up to *
CVE List
linux linux_kernelfrom 5.7 before 5.10.40, from 5.11 before 5.12.7, 5.13NVD

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: nvmet: fix memory leak in nvmet_alloc_ctrl() When creating ctrl in nvmet_alloc_ctrl(), if the cntlid_min is larger than cntlid_max of the subsystem, and jumps to the "out_free_changed_ns_list" label, but the ctrl->sqs lack of be freed. Fix this by jumping to the "out_free_sqs" label.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nvmet: repara la pérdida de memoria en nvmet_alloc_ctrl() Al crear ctrl en nvmet_alloc_ctrl(), si cntlid_min es mayor que cntlid_max del subsistema y salta a la etiqueta "out_free_changed_ns_list", pero el ctrl->sqs falta para liberarse. Solucione este problema saltando a la etiqueta "out_free_sqs".

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47075 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47075 changed 2026-06-17Public domain