In the Linux kernel, the following vulnerability has been resolved: nvme-pci: fix use-after-free in nvme_free_host_mem() nvme_free_host_mem() frees… (CVE-2026-64071)
A use-after-free vulnerability in the Linux kernel's nvme-pci driver was resolved. The function nvme_free_host_mem() frees a memory pointer dev->hmb_sgt but does not clear it, leading to a potential use-after-free if called twice in the same error path. This can cause a NULL pointer dereference in iommu_dma_free_noncontiguous(), resulting in kernel crashes. The issue is triggered during NVMe device probing when host memory setup partially succeeds but then fails. The fix sets dev->hmb_sgt to NULL after freeing to prevent reuse of freed memory.
AI Analysis
Technical Summary
The Linux kernel nvme-pci driver contained a use-after-free vulnerability (CVE-2026-64071) in the nvme_free_host_mem() function. This function frees the dev->hmb_sgt pointer via dma_free_noncontiguous() but does not nullify the pointer afterward. If nvme_free_host_mem() is called twice in the same error path—such as during nvme_probe() when nvme_setup_host_mem() succeeds but nvme_set_host_mem() fails—the stale pointer is dereferenced, causing a NULL pointer dereference in iommu_dma_free_noncontiguous(). This leads to kernel crashes, reproducible on Thunderbolt-attached NVMe devices experiencing intermittent I/O errors. The vulnerability is fixed by setting dev->hmb_sgt to NULL after freeing it, preventing use-after-free conditions.
Potential Impact
This vulnerability can cause kernel NULL pointer dereferences leading to system crashes or denial of service on affected Linux systems using the nvme-pci driver. It affects NVMe devices, particularly those connected via Thunderbolt where intermittent I/O errors occur during host memory setup. There is no indication of remote code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix is available that sets the dev->hmb_sgt pointer to NULL after freeing it in nvme_free_host_mem(), preventing use-after-free. Users should apply the official Linux kernel patches that address CVE-2026-64071. Since this is a kernel-level issue, updating to a kernel version containing this fix is the recommended remediation. Patch status is not explicitly confirmed in the provided data; check the vendor or Linux kernel advisories for the exact fixed versions and update accordingly.
In the Linux kernel, the following vulnerability has been resolved: nvme-pci: fix use-after-free in nvme_free_host_mem() nvme_free_host_mem() frees… (CVE-2026-64071)
Description
A use-after-free vulnerability in the Linux kernel's nvme-pci driver was resolved. The function nvme_free_host_mem() frees a memory pointer dev->hmb_sgt but does not clear it, leading to a potential use-after-free if called twice in the same error path. This can cause a NULL pointer dereference in iommu_dma_free_noncontiguous(), resulting in kernel crashes. The issue is triggered during NVMe device probing when host memory setup partially succeeds but then fails. The fix sets dev->hmb_sgt to NULL after freeing to prevent reuse of freed memory.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel nvme-pci driver contained a use-after-free vulnerability (CVE-2026-64071) in the nvme_free_host_mem() function. This function frees the dev->hmb_sgt pointer via dma_free_noncontiguous() but does not nullify the pointer afterward. If nvme_free_host_mem() is called twice in the same error path—such as during nvme_probe() when nvme_setup_host_mem() succeeds but nvme_set_host_mem() fails—the stale pointer is dereferenced, causing a NULL pointer dereference in iommu_dma_free_noncontiguous(). This leads to kernel crashes, reproducible on Thunderbolt-attached NVMe devices experiencing intermittent I/O errors. The vulnerability is fixed by setting dev->hmb_sgt to NULL after freeing it, preventing use-after-free conditions.
Potential Impact
This vulnerability can cause kernel NULL pointer dereferences leading to system crashes or denial of service on affected Linux systems using the nvme-pci driver. It affects NVMe devices, particularly those connected via Thunderbolt where intermittent I/O errors occur during host memory setup. There is no indication of remote code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix is available that sets the dev->hmb_sgt pointer to NULL after freeing it in nvme_free_host_mem(), preventing use-after-free. Users should apply the official Linux kernel patches that address CVE-2026-64071. Since this is a kernel-level issue, updating to a kernel version containing this fix is the recommended remediation. Patch status is not explicitly confirmed in the provided data; check the vendor or Linux kernel advisories for the exact fixed versions and update accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-g774-9rm3-mcq6
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64071"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27a92a4a8d598912c241
Added to database: 07/19/2026, 19:38:17 UTC
Last enriched: 07/19/2026, 19:52:26 UTC
Last updated: 07/20/2026, 17:26:47 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.