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

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-11-09T10:14:27.043Z
- Modified: 2026-08-05T11:42:33.611Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## Every score

- Linux: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/c94e965f766321641ec38e4eece9ce8884543244> (patch)
- <https://git.kernel.org/stable/c/c60af16e1d6cc2237d58336546d6adfc067b6b8f> (patch)
- <https://git.kernel.org/stable/c/e61bd51e44409495d75847e9230736593e4c8710> (patch)
- <https://git.kernel.org/stable/c/d2f551b1f72b4c508ab9298419f6feadc3b5d791> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-50215](https://www.cve.org/CVERecord?id=CVE-2024-50215), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-50215](https://nvd.nist.gov/vuln/detail/CVE-2024-50215), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-50215 · Whole record: https://cve.day/CVE-2024-50215.json · Rebuilt by cve.day 2026-11-25T22:58:47.960Z
