CVE-2024-27392: nvme: host: fix double-free of struct nvme_id_ns in ns_update_nuse()
In the Linux kernel, the following vulnerability has been resolved:
nvme: host: fix double-free of struct nvme_id_ns in ns_update_nuse()
When nvme_identify_ns() fails, it frees the pointer to the struct
nvme_id_ns before it returns. However, ns_update_nuse() calls kfree()
for the pointer even when nvme_identify_ns() fails. This results in
KASAN double-free, which was observed with blktests nvme/045 with
proposed patches [1] on the kernel v6.8-rc7. Fix the double-free by
skipping kfree() when nvme_identify_ns() fails.
Security readout for executives and security teams
Plain-English summary
A Linux NVMe driver error can free the same memory twice when namespace identification fails. This may corrupt kernel memory or crash a system. The supplied evidence documents detection during kernel testing, not a real-world attack or proven code execution.
Executive priority
Treat as a high-priority kernel maintenance issue for affected NVMe systems, especially availability-sensitive servers. Accelerate normal patching, but the evidence does not justify an emergency response based on active exploitation.
Technical view
In ns_update_nuse(), failure of nvme_identify_ns() caused a second kfree() after that function had already freed struct nvme_id_ns. KASAN observed the double-free during blktests nvme/045 on Linux 6.8-rc7. The referenced kernel changes prevent the second free on failure.
Likely exposure
Exposure is most likely on affected Linux 6.8-series kernels using NVMe where namespace identification can fail. The bundle identifies versions 6.8 through the listed correction boundaries, but does not establish individual distribution package status. Systems without NVMe use are less likely to reach this path.
Exploitation context
The CVSS vector describes a local, low-complexity attack requiring low privileges and no user interaction. However, the supplied sources provide no evidence of active exploitation, and the CVE is not listed as KEV. The documented observation occurred under KASAN during testing.
Researcher notes
The root cause and correction are well documented, but practical attacker control over the failure condition is not established in the bundle. CVSS indicates potentially severe confidentiality, integrity, and availability impact; the cited observation only proves a KASAN-detected double-free in testing.
Mitigation direction
Install a vendor-supported kernel containing one of the referenced corrective commits.
Check distribution security guidance for the precise fixed package version.
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.
cve · low confidence lookup
CVE-2024-27392 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
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.
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.