drm/vmwgfx: Fix prime with external buffers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/vmwgfx: Fix prime with external buffers
Make sure that for external buffers mapping goes through the dma_buf interface instead of trying to access pages directly.
External buffers might not provide direct access to readable/writable pages so to make sure the bo's created from external dma_bufs can be read dma_buf interface has to be used.
Fixes crashes in IGT's kms_prime with vgem. Regular desktop usage won't trigger this due to the fact that virtual machines will not have multiple GPUs but it enables better test coverage in IGT.
From the CVE record · Linux
The Linux kernel's vmwgfx driver can crash when handling PRIME buffers imported from external dma_bufs because it tries to access their pages directly. The issue occurs in IGT's kms_prime test with vgem; regular desktop usage is not expected to trigger it. The input does not describe an attacker, authentication requirement, or user interaction.
Engineers running Linux kernels with the vmwgfx driver should check their versions against the vendor advisory; affected versions are not specified.