CVE-2026-139790: drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: cancel idle work in hwinit failure paths for vcn/uvd/vce/jpeg
When hwinit() fails, amdgpudeviceipfiniearly() skips hwfini() because status.hw was never set. For VCN, UVD (including UVD ENC), VCE, and JPEG, hwfini() is where canceldelayedworksync() is called. Any idle work queued during the partial hwinit() is therefore left pending after swfini() frees the adev state the handler touches.
Cancel the idle work in each hwinit() error path, immediately before returning the error, so that hwfini() remains the sole cancel site on the normal teardown path with no duplication.
(cherry picked from commit 7ff2327fde029e97d0050fcb94e3f4063c318547)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
For VCN, UVD (including UVD ENC), VCE, and JPEG, cancel idle work in each hw_init() error path immediately before returning the error; use cancel_delayed_work_sync() so pending work cannot run after device state is freed.
Event History
Frequently Asked Questions
Under what conditions can the stale work remain pending?
The condition occurs when partial hardware initialization fails after idle work has been queued. Because the hardware status is not set, early finalization skips the normal hardware-finalization path that would cancel that work.
Which AMDGPU hardware blocks are covered by the fix?
The fix covers VCN, UVD including UVD ENC, VCE, and JPEG. It adds cancellation of pending idle work in each affected hardware-initialization error path.