7.8high
drm/amdgpu: recompute the dw estimate after allocating a new VM update job
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 94611b5aa3b8b94d5465e579c100a506faad5678, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d7e4ce4f399878bb46817d742387d6ed0a3114fa, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1871143400c7f459c647867cf544ed937dd50736, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before dc715d660d9255ed016b41a624e5dee69c0840a4, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ec67981c87d574d584406ce341ab72067590069d, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a74c7832b11827907de560169c7d4ac94505fd87, before 6.1.193, before 6.6.163 and 3 more Not affected: from 6.1.193 up to 6.1.*, from 6.6.163 up to 6.6.*, from 6.12.117 up to 6.12.*, from 6.18.63 up to 6.18.*, from 7.3.4 up to 7.3.*, from 7.4-rc1 up to * | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-139072 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-139072 changed 2026-12-01 | Public domain |