Skip to content
Medium 5.5

drm/amdgpu: reserve eviction-fence slot at WPTR caller

CVE-2026-139675 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 7.3.0, < 7.3.6→ 7.3.6

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: reserve eviction-fence slot at WPTR caller

Root cause analysis showed that the previous workaround was fixing the
symptom in the wrong layer.

Problem:
kernel BUG at drivers/dma-buf/dma-resv.c:319!
BUG_ON(fobj->num_fences >= fobj->max_fences)
Workqueue: events amdgpu_userq_restore_worker

  • amdgpu_evf_mgr_attach_fence() had been temporarily taught to reserve/add
    fence bookkeeping internally as a workaround.
  • This hid the real contract violation and made reservation policy implicit
    inside a helper.

Review clarification:

  • The helper-side dma_resv_add_fence-related workaround was only an intended
    proposal sent for review discussion, not the final direction.
  • Final fix keeps fence-slot reservation explicit in callers and leaves the
    helper free of policy decisions.

Findings from investigation:

  • drm_exec_prepare_obj() both locks and reserves fence slots.
  • drm_exec_lock_obj() only locks and does not reserve slots.
  • Existing attach_fence callers in the GEM/userq restore flows already reserve
    TTM_NUM_MOVE_FENCES + 1 before adding the bookkeeping eviction fence.
  • The WPTR mapping path in mes_userq_create_wptr_mapping() used
    drm_exec_lock_obj() and then called amdgpu_evf_mgr_attach_fence(), so this
    specific path could add a fence without pre-reserved space.

Fix:

  • Switch the WPTR mapping path to drm_exec_prepare_obj(...,
    TTM_NUM_MOVE_FENCES + 1), restoring the caller-side re…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details