CVE-2026-142876: drm/amdgpu/userq: wait for GPU reset before mapping or unmapping queues
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/userq: wait for GPU reset before mapping or unmapping queues
The user queue map and unmap helpers talk to the MES, but only the create path holds resetdomain->sem around them. The eviction, restore, destroy and suspend paths can submit to the MES while a GPU reset is in progress:
WARNING: amdgpudevice.c:928 at amdgpudeviceskiphwaccess+0x73/0x90 [amdgpu] Workqueue: events amdgpuevictionfencesuspendworker [amdgpu] Call Trace: amdgpummwdoorbell64+0x20/0x70 [amdgpu] mesv110ringsetwptr+0x71/0x80 [amdgpu] amdgpuringcommit+0x5b/0xa0 [amdgpu] mesv110submitpktandpollcompletion.constprop.0+0x207/0x520 [amdgpu] mesv110removehwqueue+0xd9/0x100 [amdgpu] mesuserqunmap+0xc3/0x140 [amdgpu] amdgpuuserqunmaphelper+0x67/0x280 [amdgpu] amdgpuuserqevict+0x52/0xf0 [amdgpu] amdgpuevictionfencesuspendworker+0x55/0xe0 [amdgpu]
Take the semaphore for read in the helpers instead, around both the MES call and the queue state check and update. The reset changes the queue state from amdgpuuserqprereset()/postreset(), so every caller now waits for a running reset and acts on the state it left behind.
(cherry picked from commit e6a8b8588f43bd4d7054ac47cccc35f56ad2df90)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch e6a8b8588f43bd4d7054ac47cccc35f56ad2df90
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel amdgpu user queue functionality are affected when queue mapping or unmapping can occur while a GPU reset is in progress. The affected paths include eviction, restore, destroy, and suspend operations.
What condition is required to trigger the problem?
A user queue map or unmap helper must submit work to the MES concurrently with an active GPU reset. The race occurs because these paths previously did not hold the reset-domain semaphore while issuing the MES operation and updating queue state.
How can I identify signs that a system has encountered the issue?
Kernel logs may contain a WARNING from amdgpu_device_skip_hw_access, with a stack trace involving amdgpu_eviction_fence_suspend_worker, mes_userq_unmap, amdgpu_userq_unmap_helper, and MES ring submission functions. This indicates an unmap operation attempted hardware access during reset activity.
What does the fix change?
The fix takes the reset-domain semaphore for reading in the queue map and unmap helpers. It covers both the MES call and queue-state checks and updates, causing callers to wait for a running reset before acting on queue state.