CVE-2024-50215 nvmet-auth: assign dh_key to NULL after kfree_sensitive
A double-free vulnerability in the Linux kernel NVMe target authentication allows attackers to cause denial of service or potentially execute code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50215?
CVE-2024-50215 is a high-severity use after free vulnerability in Linux kernel, published on 9 Nov 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-auth: assign dh_key to NULL after kfree_sensitive
ctrl->dh_key might be used across multiple calls to nvmet_setup_dhgroup() for the same controller. So it's better to nullify it after release on error path in order to avoid double free later in nvmet_destroy_auth().
Found by Linux Verification Center (linuxtesting.org) with Svace.
Weakness: CWE-415
Which versions are affected by CVE-2024-50215?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50215?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-50215 being exploited?
There is no known exploitation of CVE-2024-50215 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53084, BELL-CVE-2024-50215, DEBIAN-CVE-2024-50215, GHSA-frfw-f98c-6jvj, UBUNTU-CVE-2024-50215.