vhost-vdpa: fix vm_flags for virtqueue doorbell mapping
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vhost-vdpa: fix vm_flags for virtqueue doorbell mapping
The virtqueue doorbell is usually implemented via registeres but we don't provide the necessary vma->flags like VM_PFNMAP. This may cause several issues e.g when userspace tries to map the doorbell via vhost IOTLB, kernel may panic due to the page is not backed by page structure. This patch fixes this by setting the necessary vm_flags. With this patch, try to map doorbell via IOTLB will fail with bad address.
From the CVE record · Linux
The Linux kernel's vhost-vdpa virtqueue doorbell mapping lacks necessary memory-mapping flags. A userspace attempt to map the doorbell through the vhost IOTLB may cause a kernel panic. The input does not specify authentication requirements or any user interaction beyond the mapping attempt.
Engineers running Linux kernels with vhost-vdpa should check their deployments; affected versions are not specified.