Description
In the Linux kernel, the following vulnerability has been resolved: vdpa_sim: serialize IOTLB updates with dataplane access The simulator translates IOTLB entries into iovecs or bvecs under iommu_lock, 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 _copy_from_iter(). 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 iommu_lock 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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
2c53d0f64c06f4580588ef16f50f63a112117a02 to < 41f27ed9ecf5c552a7ecacac3b878aaa51150447affected2c53d0f64c06f4580588ef16f50f63a112117a02 to < 57b7e461d4dda2cb26e8fc5a0fe76dce6db0bf3daffected2c53d0f64c06f4580588ef16f50f63a112117a02 to < 1f2cc552643f5b5d20e506b6651c8a552bf09f4caffected2c53d0f64c06f4580588ef16f50f63a112117a02 to < 8517ed4429a2eefd002dce00ea46e23e6714350baffected
Linux Linux
Default version status: affected
5.7affected0 to < 5.7unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected