What’s Vulnerable › Vulnerabilities

CVE-2024-50215: nvmet-auth: assign dh_key to NULL after kfree_sensitive

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.116, 6.11.7, 6.6.60. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-50215 or the next vulnerability affects your stack