{"id":"CVE-2024-50215","summary":"nvmet-auth: assign dh_key to NULL after kfree_sensitive","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-auth: assign dh_key to NULL after kfree_sensitive\n\nctrl-\u003edh_key might be used across multiple calls to nvmet_setup_dhgroup()\nfor the same controller. So it's better to nullify it after release on\nerror path in order to avoid double free later in nvmet_destroy_auth().\n\nFound by Linux Verification Center (linuxtesting.org) with Svace.","modified":"2026-04-16T04:38:57.418150197Z","published":"2024-11-09T10:14:27.043Z","related":["SUSE-SU-2024:4314-1","SUSE-SU-2024:4315-1","SUSE-SU-2024:4316-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4376-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50215.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/c60af16e1d6cc2237d58336546d6adfc067b6b8f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c94e965f766321641ec38e4eece9ce8884543244"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d2f551b1f72b4c508ab9298419f6feadc3b5d791"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e61bd51e44409495d75847e9230736593e4c8710"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50215.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50215"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7a277c37d3522e9b2777d762bbbcecafae2b1f8d"},{"fixed":"c94e965f766321641ec38e4eece9ce8884543244"},{"fixed":"c60af16e1d6cc2237d58336546d6adfc067b6b8f"},{"fixed":"e61bd51e44409495d75847e9230736593e4c8710"},{"fixed":"d2f551b1f72b4c508ab9298419f6feadc3b5d791"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50215.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}