drm/amdkfd: don't allow mapping the MMIO HDP page with large pages
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d8e408a82704c86ba87c3d58cfe69dcdb758aa07 · < 6186c93560889265bfe0914609c274eff40bbeb5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: don't allow mapping the MMIO HDP page with large pages
We don't get the right offset in that case. The GPU has an unused 4K area of the register BAR space into which you can remap registers. We remap the HDP flush registers into this space to allow userspace (CPU or GPU) to flush the HDP when it updates VRAM. However, on systems with >4K pages, we end up exposing PAGE_SIZE of MMIO space.
From the CVE record · Linux
The Linux kernel's drm/amdkfd component can expose more MMIO register space than intended when mapping the HDP page on systems with pages larger than 4K. The issue affects a mapping intended to let local userspace flush the HDP; the input does not specify authentication requirements or additional user interaction.
Operators running Linux kernels with drm/amdkfd on systems with pages larger than 4K should check their kernel version against the vendor advisory.