CVE-2021-47075 nvmet: fix memory leak in nvmet_alloc_ctrl()
A memory leak in the Linux kernel NVMe target driver allows attackers to cause a denial of service by exhausting system memory.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47075?
CVE-2021-47075 is a medium-severity denial of service vulnerability in Linux kernel, published on 1 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-401
Which versions are affected by CVE-2021-47075?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47075?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-47075 being exploited?
There is no known exploitation of CVE-2021-47075 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47075, GHSA-f5x9-85f3-f3r4, UBUNTU-CVE-2021-47075.