CVE-2021-47075

published 1 Mar 2024 · updated 11 May 2026

nvmet: fix memory leak in nvmet_alloc_ctrl()

5.3MediumCVSS 5.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 4720f29acb3fe67aa8aa71e6b675b079d193aaeb, Kernel afb680ed7ecbb7fd66ddb43650e9b533fd8b4b9a and Kernel fec356a61aa3d3a66416b4321f1279e09e0f256f.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.7, >=94a39d61f80fcd679debda11e1ca02b88d90e67e <4720f29acb3fe67aa8aa71e6b675b079d193aaeb, >=94a39d61f80fcd679debda11e1ca02b88d90e67e <afb680ed7ecbb7fd66ddb43650e9b533fd8b4b9a, >=94a39d61f80fcd679debda11e1ca02b88d90e67e <fec356a61aa3d3a66416b4321f1279e09e0f256f4720f29acb3fe67aa8aa71e6b675b079d193aaeb, afb680ed7ecbb7fd66ddb43650e9b533fd8b4b9a, fec356a61aa3d3a66416b4321f1279e09e0f256f

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47075 severity on Zeptric[![CVE-2021-47075](https://zeptric.io/badge/cve/CVE-2021-47075.svg)](https://zeptric.io/cve/CVE-2021-47075)