What’s Vulnerable › Vulnerabilities
CVE-2021-47075: nvmet: fix memory leak in nvmet_alloc_ctrl()
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-01 · updated 2026-06-17
- Weakness: CWE-401
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 products
- Linux kernel: from 5.7 before 5.10.40; from 5.11 before 5.12.7; 5.13-rc1, 5.13-rc2 — fixed in 5.10.40, 5.12.7
How to fix
Upgrade to a fixed version: Linux kernel 5.10.40, 5.12.7. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/4720f29acb3fe67aa8aa71e6b675b079d193aaeb
- https://git.kernel.org/stable/c/afb680ed7ecbb7fd66ddb43650e9b533fd8b4b9a
- https://git.kernel.org/stable/c/fec356a61aa3d3a66416b4321f1279e09e0f256f
- https://git.kernel.org/stable/c/4720f29acb3fe67aa8aa71e6b675b079d193aaeb
- https://git.kernel.org/stable/c/afb680ed7ecbb7fd66ddb43650e9b533fd8b4b9a
- https://git.kernel.org/stable/c/fec356a61aa3d3a66416b4321f1279e09e0f256f
Get alerted when CVE-2021-47075 or the next vulnerability affects your stack