CVE-2024-50215: nvmet-auth: assign dh_key to NULL after kfree_sensitive
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.
Security readout for executives and security teams
Plain-English summary
A memory-management flaw in Linux NVMe target authentication can free the same cryptographic key twice after a setup error. This may crash or corrupt an affected kernel and could threaten data confidentiality, integrity, and availability. Risk is concentrated on systems using the nvmet authentication functionality.
Executive priority
Treat as high priority for reachable NVMe target infrastructure using authentication. Patch exposed or business-critical storage systems first. Systems not using nvmet authentication are less likely to encounter this specific path, but version and configuration evidence should support any deferral.
Technical view
An error path in nvmet_setup_dhgroup() frees ctrl->dh_key without setting the pointer to NULL. Reuse of that controller can leave the stale pointer available for a second release in nvmet_destroy_auth(), producing a CWE-415 double free. The cited Linux stable commits nullify the pointer after kfree_sensitive().
Likely exposure
Prioritize Linux systems configured as NVMe targets with authentication enabled, particularly where untrusted clients can reach the service. The bundle identifies affected Linux releases, but its version data is ambiguous; confirm exposure using the running kernel build, distribution advisory, configuration, and cited fixes.
Exploitation context
The supplied CVSS 3.1 score is 8.1 with network reachability, high attack complexity, no required privileges, and no user interaction. CISA KEV status is false, and the supplied sources provide no evidence of active exploitation. Triggering appears dependent on the affected authentication error and controller-lifecycle paths.
Researcher notes
The defect was found by Linux Verification Center using Svace. The essential condition is a stale ctrl->dh_key pointer surviving kfree_sensitive() on an error path and later reaching nvmet_destroy_auth(). The bundle does not establish practical exploitation, reliable impact beyond the CVSS assessment, or exact downstream package boundaries.
Mitigation direction
Apply a vendor-supported kernel update containing the applicable cited stable fix.
Review Linux distribution advisories to identify the corrected package for each deployed kernel.
Restrict NVMe target access to trusted networks and clients while updates are pending.
Disable unused NVMe target authentication functionality where operationally safe.
Validation and detection
Inventory systems running Linux NVMe target services and determine whether authentication is configured.
Record each running kernel version and distribution package release.
Confirm the installed kernel contains the applicable cited stable commit or vendor backport.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-415: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
2ADP providers
6Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.