AZL-117694: CVE-2026-142876 affecting package kernel 6.6.161.1-1
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
kernelto a version that resolves this vulnerability.Patch e6a8b8588f43bd4d7054ac47cccc35f56ad2df90
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Azure Linux kernel package version 6.6.161.1-1 with the AMDGPU driver and its user queue functionality are relevant. The issue concerns queue mapping or unmapping paths that communicate with the MES during a GPU reset.
What condition is required to trigger the problem?
A GPU reset must be in progress while user queues are being evicted, restored, destroyed, suspended, mapped, or unmapped. Those paths can otherwise submit work to the MES while hardware access is being skipped during reset.
How can I identify signs that the issue has occurred?
Kernel logs may contain an AMDGPU warning at amdgpu_device.c:928 involving amdgpu_device_skip_hw_access. The provided trace includes MES queue removal and amdgpu_userq_unmap_helper calls, often from the amdgpu_eviction_fence_suspend_worker workqueue.
What is the remediation described by the fix?
The fix makes the user queue map and unmap helpers take the reset-domain semaphore for reading around the MES operation and queue-state check/update. This causes callers to wait for an active GPU reset to complete before acting on queue state.