CVE-2026-64071
nvme-pci: fix use-after-free in nvme_free_host_mem()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 9525e3a6fbb1d126a22ab2ee86ddea25af581a7c; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 7c89f474005d8377525d2991930b7432ee193a52; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < b35a13036755c5803168a7cb93bc66035c3e65b8
- Anyone running Linux 6.13
Vulnerability facts
- Affected
- Linux >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 9525e3a6fbb1d126a22ab2ee86ddea25af581a7c; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 7c89f474005d8377525d2991930b7432ee193a52; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < b35a13036755c5803168a7cb93bc66035c3e65b8; Linux 6.13
- Fixed in
- Linux 9525e3a6fbb1d126a22ab2ee86ddea25af581a7c, Linux 7c89f474005d8377525d2991930b7432ee193a52
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.17% chance of exploitation in 30 days (percentile 4, 2026-11-26)
- CWE
- CWE-416
- Modified
Description
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 dev->hmb_sgt via dma_free_noncontiguous() but never clears the pointer afterward. This leads to a use-after-free if nvme_free_host_mem() is called twice in the same error path. This can happen during nvme_probe() when nvme_setup_host_mem() succeeds in allocating the HMB (setting dev->hmb_sgt) but nvme_set_host_mem() fails with an I/O error: nvme_setup_host_mem() nvme_alloc_host_mem_single() -> sets dev->hmb_sgt nvme_set_host_mem() -> fails with -EIO nvme_free_host_mem() -> frees hmb_sgt, but does NOT NULL it return error nvme_probe() error path: nvme_free_host_mem() -> dev->hmb_sgt is stale, use-after-free The second call dereferences the freed sgt, causing a NULL pointer dereference in iommu_dma_free_noncontiguous() when it accesses sgt->sgl->dma_address (the backing memory has been freed and zeroed). This is reproducible on Thunderbolt-attached NVMe devices (e.g., OWC Envoy Express behind a Dell WD22TB4 dock) where the device intermittently returns I/O errors during HMB setup due to PCIe link instability. BUG: kernel NULL pointer dereference, address: 0000000000000010 RIP: 0010:iommu_dma_free_noncontiguous+0x22/0x80 Call Trace: <TASK> dma_free_noncontiguous+0x3b/0x130 nvme_free_host_mem+0x30/0xf0 [nvme] nvme_probe.cold+0xcc/0x275 [nvme] local_pci_probe+0x43/0xa0 pci_device_probe+0xeea/0x290 really_probe+0xf9/0x3b0 __driver_probe_device+0x8b/0x170 driver_probe_device+0x24/0xd0 __driver_attach_async_helper+0x6b/0x110 async_run_entry_fn+0x37/0x170 process_one_work+0x1ac/0x3d0 worker_thread+0x1b8/0x360 kthread+0xf7/0x130 ret_from_fork+0x2d8/0x3a0 ret_from_fork_asm+0x1a/0x30 </TASK> Fix this by setting dev->hmb_sgt to NULL after freeing it, so the second call takes the multi-descriptor path which safely handles the already-cleaned-up state.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 9525e3a6fbb1d126a22ab2ee86ddea25af581a7c; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 7c89f474005d8377525d2991930b7432ee193a52; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < b35a13036755c5803168a7cb93bc66035c3e65b8 | — | cvelist |
| Linux | 6.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-64071. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-64071.md Affected: Linux >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 9525e3a6fbb1d126a22ab2ee86ddea25af581a7c; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 7c89f474005d8377525d2991930b7432ee193a52; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < b35a13036755c5803168a7cb93bc66035c3e65b8; Linux 6.13 Fixed in: Linux 9525e3a6fbb1d126a22ab2ee86ddea25af581a7c, Linux 7c89f474005d8377525d2991930b7432ee193a52 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-64071 being exploited?
There is no confirmed exploitation: CVE-2026-64071 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-64071?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-64071?
Linux >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 9525e3a6fbb1d126a22ab2ee86ddea25af581a7c; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < 7c89f474005d8377525d2991930b7432ee193a52; >= 63a5c7a4b4c49ad86c362e9f555e6f343804ee1d, < b35a13036755c5803168a7cb93bc66035c3e65b8; Linux 6.13.
Is there a fix for CVE-2026-64071?
Yes. Fixed in Linux 9525e3a6fbb1d126a22ab2ee86ddea25af581a7c, Linux 7c89f474005d8377525d2991930b7432ee193a52. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-64071?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.