{"id":"DEBIAN-CVE-2026-64071","details":"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-\u003ehmb_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-\u003ehmb_sgt) but nvme_set_host_mem() fails with an I/O error:    nvme_setup_host_mem()     nvme_alloc_host_mem_single()   -\u003e sets dev-\u003ehmb_sgt     nvme_set_host_mem()            -\u003e fails with -EIO     nvme_free_host_mem()           -\u003e frees hmb_sgt, but does NOT NULL it     return error    nvme_probe() error path:     nvme_free_host_mem()           -\u003e dev-\u003ehmb_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-\u003esgl-\u003edma_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:   \u003cTASK\u003e   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   \u003c/TASK\u003e  Fix this by setting dev-\u003ehmb_sgt to NULL after freeing it, so the second call takes the multi-descriptor path which safely handles the already-cleaned-up state.","modified":"2026-09-04T09:00:25.659270390Z","published":"2026-07-19T16:17:47.687Z","upstream":["CVE-2026-64071"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-64071"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.12-1"}]}],"versions":["6.12.100-1","6.12.101-1","6.12.105-1","6.12.107-1","6.12.38-1","6.12.41-1","6.12.43-1","6.12.43-1~bpo12+1","6.12.48-1","6.12.57-1","6.12.57-1~bpo12+1","6.12.63-1","6.12.63-1~bpo12+1","6.12.69-1","6.12.69-1~bpo12+1","6.12.73-1","6.12.73-1~bpo12+1","6.12.74-1","6.12.74-2","6.12.74-2~bpo12+1","6.12.85-1","6.12.85-1~bpo12+1","6.12.86-1","6.12.86-1~bpo12+1","6.12.88-1","6.12.88-1~bpo12+1","6.12.90-1","6.12.90-1~bpo12+1","6.12.90-2","6.12.90-2~bpo12+1","6.12.94-1","6.12.94-1~bpo12+1","6.12.95-1","6.12.95-1~bpo12+1","6.12.96-1","6.13.10-1~exp1","6.13.11-1~exp1","6.13.2-1~exp1","6.13.3-1~exp1","6.13.4-1~exp1","6.13.5-1~exp1","6.13.6-1~exp1","6.13.7-1~exp1","6.13.8-1~exp1","6.13.9-1~exp1","6.13~rc6-1~exp1","6.13~rc7-1~exp1","6.14.3-1~exp1","6.14.5-1~exp1","6.14.6-1~exp1","6.15-1~exp1","6.15.1-1~exp1","6.15.2-1~exp1","6.15.3-1~exp1","6.15.4-1~exp1","6.15.5-1~exp1","6.15.6-1~exp1","6.15~rc7-1~exp1","6.16-1~exp1","6.16.1-1~exp1","6.16.10-1","6.16.11-1","6.16.12-1","6.16.12-1~bpo13+1","6.16.12-2","6.16.3-1","6.16.3-1~bpo13+1","6.16.5-1","6.16.6-1","6.16.7-1","6.16.8-1","6.16.9-1","6.16~rc7-1~exp1","6.17.10-1","6.17.11-1","6.17.12-1","6.17.13-1","6.17.13-1~bpo13+1","6.17.2-1~exp1","6.17.5-1~exp1","6.17.6-1","6.17.7-1","6.17.7-2","6.17.8-1","6.17.8-1~bpo13+1","6.17.9-1","6.18.1-1~exp1","6.18.10-1","6.18.12-1","6.18.12-1~bpo13+1","6.18.13-1","6.18.14-1","6.18.15-1","6.18.15-1~bpo13+1","6.18.2-1~exp1","6.18.3-1","6.18.5-1","6.18.5-1~bpo13+1","6.18.8-1","6.18.9-1","6.18.9-1~bpo13+1","6.18~rc4-1~exp1","6.18~rc4-1~exp2","6.18~rc5-1~exp1","6.18~rc6-1~exp1","6.18~rc7-1~exp1","6.19-1~exp1","6.19.10-1","6.19.10-1~bpo13+1","6.19.11-1","6.19.11-1~bpo13+1","6.19.12-1","6.19.13-1","6.19.13-1~bpo13+1","6.19.14-1","6.19.14-1~bpo13+1","6.19.2-1~exp1","6.19.3-1~exp1","6.19.4-1~exp1","6.19.5-1~exp1","6.19.6-1","6.19.6-2","6.19.6-2~bpo13+1","6.19.8-1","6.19.8-1~bpo13+1","6.19~rc4-1~exp1","6.19~rc5-1~exp1","6.19~rc6-1~exp1","6.19~rc7-1~exp1","6.19~rc8-1~exp1","7.0-1~exp1","7.0.1-1~exp1","7.0.10-1","7.0.10-1~bpo13+1","7.0.3-1","7.0.4-1","7.0.4-1~bpo13+1","7.0.7-1","7.0.7-1~bpo13+1","7.0.9-1","7.0.9-1~bpo13+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-64071.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}