CVE-2026-139675: drm/amdgpu: reserve eviction-fence slot at WPTR caller
drm/amdgpu: reserve eviction-fence slot at WPTR caller
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In mes_userq_create_wptr_mapping(), use drm_exec_prepare_obj() to reserve TTM_NUM_MOVE_FENCES + 1 slots before adding the bookkeeping eviction fence, rather than only calling drm_exec_lock_obj(); remove the helper-side reservation workaround from amdgpu_evf_mgr_attach_fence() so reservation policy remains explicit at the caller.
Event History
Frequently Asked Questions
How can I tell whether this issue has occurred on a system?
The reported failure is a kernel BUG in drivers/dma-buf/dma-resv.c at line 319, triggered when fobj->num_fences is greater than or equal to fobj->max_fences. The affected workqueue named in the report is events, running amdgpu_userq_restore_worker.
Which code path lacked the required fence-slot reservation?
The WPTR mapping path in the MES userq creation flow lacked the explicit reservation used by other GEM and userq restore attach-fence callers. drm_exec_lock_obj() only locks an object, whereas drm_exec_prepare_obj() both locks it and reserves fence slots.
What condition leads to the BUG?
The failure occurs when an eviction bookkeeping fence is added without sufficient reserved capacity in the DMA reservation object's fence array. Other identified callers reserve TTM_NUM_MOVE_FENCES + 1 before adding that eviction fence.