AZL-118607: CVE-2026-143336 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
vdpasim: serialize IOTLB updates with dataplane access
The simulator translates IOTLB entries into iovecs or bvecs under iommulock, then drops the lock before copying data. A concurrent DMA unmap can delete the mapping and release its pinned backing pages while the copy is still in progress, leading to a UAF in copyfromiter().
Use the existing simulator mutex to serialize DMA map changes with the full backend work function. Also make vhost-vdpa stop device access before unpinning the backing pages. Otherwise, waiting in the simulator DMA unmap callback happens after the pages have already been released and cannot protect their lifetime.
Keep iommulock for the IOTLB table itself and avoid adding a second long-lived lock to the simulator.
I found this bug myself, though the patch was written with AI assistance.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
A concurrent DMA unmap must occur while the vDPA simulator backend is copying data using IOTLB-derived mappings. The unmap can remove the mapping and release pinned backing pages before the copy completes, causing a use-after-free in _copy_from_iter().
Which components are involved in the vulnerable path?
The issue involves the Linux kernel vDPA simulator (vdpa_sim), IOTLB mapping updates, and vhost-vdpa device access. It occurs when DMA map changes are not serialized with the simulator backend work that accesses the mapped pages.
What does the fix change?
The fix uses the existing simulator mutex to serialize DMA map changes with the full backend work function. It also makes vhost-vdpa stop device access before unpinning backing pages, so an unmap cannot release pages still being used by the dataplane.