CVE-2024-50215
JSON

8.1high

nvmet-auth: assign dh_key to NULL after kfree_sensitive

Severity
8.1high CVSS:3.1 by Linux
Exploit likelihood
0.63% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 7a277c37d3522e9b2777d762bbbcecafae2b1f8d before c94e965f766321641ec38e4eece9ce8884543244, from 7a277c37d3522e9b2777d762bbbcecafae2b1f8d before c60af16e1d6cc2237d58336546d6adfc067b6b8f, from 7a277c37d3522e9b2777d762bbbcecafae2b1f8d before e61bd51e44409495d75847e9230736593e4c8710, from 7a277c37d3522e9b2777d762bbbcecafae2b1f8d before d2f551b1f72b4c508ab9298419f6feadc3b5d791, 6.0
Not affected: before 6.0, from 6.1.116 up to 6.1.*, from 6.6.60 up to 6.6.*, from 6.11.7 up to 6.11.*, from 6.12 up to *
CVE List
linux linux_kernelfrom 6.0 before 6.1.116, from 6.2 before 6.6.60, from 6.7 before 6.11.7, 6.12NVD

All scores

Linux8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-415

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nvmet-auth: asignar dh_key a NULL después de que kfree_sensitive ctrl->dh_key se pudiera usar en varias llamadas a nvmet_setup_dhgroup() para el mismo controlador. Por lo tanto, es mejor anularlo después de la liberación en la ruta de error para evitar una doble liberación más adelante en nvmet_destroy_auth(). Encontrado por Linux Verification Center (linuxtesting.org) con Svace.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50215 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-50215 changed 2026-08-04Public domain