Bug 2324875 (CVE-2024-50215) - CVE-2024-50215 kernel: nvmet-auth: assign dh_key to NULL after kfree_sensitive
Summary: CVE-2024-50215 kernel: nvmet-auth: assign dh_key to NULL after kfree_sensitive
Keywords:
Status: NEW
Alias: CVE-2024-50215
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2325096
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-09 11:02 UTC by OSIDB Bzimport
Modified: 2025-05-13 08:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:6966 0 None None None 2025-05-13 08:34:43 UTC

Description OSIDB Bzimport 2024-11-09 11:02:39 UTC
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.

Comment 1 Avinash Hanwate 2024-11-11 05:28:07 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024110924-CVE-2024-50215-0155@gregkh/T

Comment 2 errata-xmlrpc 2025-05-13 08:34:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:6966 https://access.redhat.com/errata/RHSA-2025:6966


Note You need to log in before you can comment on or make changes to this bug.