A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
In the Linux kernel, the following vulnerability has been resolved:
vduse: fix VA/PA confusion in the coherent page fault path
vduse_domain_get_coherent_page() assumes that iotlb entries above bounce_size were installed by vduse_domain_alloc_coherent(), so it treats map->addr as a physical address. But vduse registers with use_va = true, and when the device is bound to vhost_vdpa, vhost_vdpa_va_map() stores a userspace virtual address in map->addr, which vduse_domain_set_map() then copies into the same iotlb. A process holding the domain file descriptor across a rebind can therefore fault in an arbitrary physical page with read/write access, ignoring the entry permissions.
Additionally, since the domain file mmap lacks VM_IO, the domain file itself can be mapped and passed to vhost_vdpa_va_map(), producing self-referential entries that bypass the coherent path check.
To fix, only translate entries whose backing file is the domain file itself in vduse_domain_get_coherent_page(), reject such entries in vduse_domain_set_map() since only external mappings should be imported, and set VM_IO on the domain file mmap so vhost_vdpa_va_map() refuses to map it in the first place.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
References
- git.kernel.org /stable/c/1b46b4182d3d5c1a085cfe2578048e1ce09e0e01
- git.kernel.org /stable/c/4c8fdb725614189b6c73cf5f7f509592758b6d18
- git.kernel.org /stable/c/5f9da97f368cbf3de0123744d7132187e7e0495e
- git.kernel.org /stable/c/84856994037a1a71bf18163b215afbb331838b88
- git.kernel.org /stable/c/8f282b6f383b79a8ed363fbf904485e5eafaca92
- git.kernel.org /stable/c/bb2e6f166547838fd7c320b01c90918b736f76e2
- git.kernel.org /stable/c/e74a3ed4f59d84036500c5da3905ee40d2c8efa1
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning