# CVE-2021-47074: nvme-loop: fix memory leak in nvme_loop_create_ctrl()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-03-01T21:15:12.095Z
- Modified: 2026-06-17T04:16:23.860Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3a85a5de29ea779634ddfd768059e06196687aba before 9c980795ccd77e8abec33dd6fe28dfe1c4083e65; from 3a85a5de29ea779634ddfd768059e06196687aba before 551ba08d4b7eb26f75758cdb9f15105b276517ad; from 3a85a5de29ea779634ddfd768059e06196687aba before 03504e3b54cc8118cc26c064e60a0b00c2308708; 4.8 (not affected: before 4.8; from 5.10.40 up to 5.10.*; from 5.12.7 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 4.8 before 5.10.40; from 5.11 before 5.12.7; 5.13

## References

- <https://git.kernel.org/stable/c/9c980795ccd77e8abec33dd6fe28dfe1c4083e65> (patch)
- <https://git.kernel.org/stable/c/551ba08d4b7eb26f75758cdb9f15105b276517ad> (patch)
- <https://git.kernel.org/stable/c/03504e3b54cc8118cc26c064e60a0b00c2308708> (patch)

## Sources

- CVE List: [CVE-2021-47074](https://www.cve.org/CVERecord?id=CVE-2021-47074), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47074](https://nvd.nist.gov/vuln/detail/CVE-2021-47074), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47074 · Whole record: https://cve.day/CVE-2021-47074.json · Rebuilt by cve.day 2026-11-25T22:58:08.648Z
