drm/amdgpu: bypass tiling flag check in virtual display case (v2)
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:
drm/amdgpu: bypass tiling flag check in virtual display case (v2)
vkms leverages common amdgpu framebuffer creation, and also as it does not support FB modifier, there is no need to check tiling flags when initing framebuffer when virtual display is enabled.
This can fix below calltrace:
amdgpu 0000:00:08.0: GFX9+ requires FB check based on format modifier WARNING: CPU: 0 PID: 1023 at drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:1150 amdgpu_display_framebuffer_init+0x8e7/0xb40 [amdgpu]
v2: check adev->enable_virtual_display instead as vkms can be enabled in bare metal as well.
From the CVE record · Linux
The amdgpu framebuffer initialization path can trigger a kernel warning when virtual display is enabled because it checks tiling flags even though the virtual display does not support framebuffer modifiers. The input does not establish what an attacker could do or specify access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with amdgpu virtual display enabled should check their systems; affected versions are not specified.