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 package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 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_kernel | from 6.0 before 6.1.116, from 6.2 before 6.6.60, from 6.7 before 6.11.7, 6.12 | NVD |
All scores
| Linux | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-50215 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-50215 changed 2026-08-04 | Public domain |