Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139072

drm/amdgpu: recompute the dw estimate after allocating a new VM update job

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: recompute the dw estimate after allocating a new VM update job amdgpu_vm_sdma_update() keeps the number of free dwords of the current job in a local variable. When the job runs out of room it is committed and a new one is allocated, but that local variable is not refreshed and still describes the job which was just submitted. The stale value is then used to decide how many PTEs fit into the new job. If it happens to be copy_pte_num_dw + 7, or one more than that, the result is zero. copy_pte() encodes the transfer size as count * 8 - 1, so a count of zero asks the engine for a 1GB copy starting inside the IB pool. That runs off the end of the pool, faults on the first unmapped GART page above it and hangs the ring. Re-initialize the estimate from the newly allocated job, which is empty and therefore has its full budget available.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 94611b5aa3b8b94d5465e579c100a506faad5678affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d7e4ce4f399878bb46817d742387d6ed0a3114faaffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1871143400c7f459c647867cf544ed937dd50736affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < dc715d660d9255ed016b41a624e5dee69c0840a4affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ec67981c87d574d584406ce341ab72067590069daffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a74c7832b11827907de560169c7d4ac94505fd87affected
  • 0 to < 6.1.193affected
  • 0 to < 6.6.163affected
  • 0 to < 6.12.117affected
  • 0 to < 6.18.63affected
  • 0 to < 7.3.4affected

Linux Linux

Default version status: affected

  • 6.1.193 to ≤ 6.1.*unaffected
  • 6.6.163 to ≤ 6.6.*unaffected
  • 6.12.117 to ≤ 6.12.*unaffected
  • 6.18.63 to ≤ 6.18.*unaffected
  • 7.3.4 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References