What’s Vulnerable › Vulnerabilities
CVE-2021-47074: nvme-loop: fix memory leak in nvme_loop_create_ctrl()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% 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: nvme-loop: fix memory leak in nvme_loop_create_ctrl() When creating loop ctrl in nvme_loop_create_ctrl(), if nvme_init_ctrl() fails, the loop ctrl should be freed before jumping to the "out" label.
Affected products
- Linux kernel: from 4.8 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/03504e3b54cc8118cc26c064e60a0b00c2308708
- https://git.kernel.org/stable/c/551ba08d4b7eb26f75758cdb9f15105b276517ad
- https://git.kernel.org/stable/c/9c980795ccd77e8abec33dd6fe28dfe1c4083e65
- https://git.kernel.org/stable/c/03504e3b54cc8118cc26c064e60a0b00c2308708
- https://git.kernel.org/stable/c/551ba08d4b7eb26f75758cdb9f15105b276517ad
- https://git.kernel.org/stable/c/9c980795ccd77e8abec33dd6fe28dfe1c4083e65
Get alerted when CVE-2021-47074 or the next vulnerability affects your stack