{"id":"CVE-2026-139072","state":"PUBLISHED","title":"drm/amdgpu: recompute the dw estimate after allocating a new VM update job","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: recompute the dw estimate after allocating a new VM update job\n\namdgpu_vm_sdma_update() keeps the number of free dwords of the current\njob in a local variable. When the job runs out of room it is committed\nand a new one is allocated, but that local variable is not refreshed and\nstill describes the job which was just submitted.\n\nThe stale value is then used to decide how many PTEs fit into the new\njob. If it happens to be copy_pte_num_dw + 7, or one more than that, the\nresult is zero. copy_pte() encodes the transfer size as count * 8 - 1,\nso a count of zero asks the engine for a 1GB copy starting inside the IB\npool. That runs off the end of the pool, faults on the first unmapped\nGART page above it and hangs the ring.\n\nRe-initialize the estimate from the newly allocated job, which is empty\nand therefore has its full budget available.","publishedAt":"2026-11-30T13:27:37.403Z","updatedAt":"2026-11-30T13:27:37.403Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"94611b5aa3b8b94d5465e579c100a506faad5678","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d7e4ce4f399878bb46817d742387d6ed0a3114fa","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"1871143400c7f459c647867cf544ed937dd50736","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"dc715d660d9255ed016b41a624e5dee69c0840a4","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ec67981c87d574d584406ce341ab72067590069d","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a74c7832b11827907de560169c7d4ac94505fd87","versionType":"git"},{"version":"0","status":"affected","lessThan":"6.1.193","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.6.163","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.12.117","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.18.63","versionType":"semver"},{"version":"0","status":"affected","lessThan":"7.3.4","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"]}],"references":["https://git.kernel.org/stable/c/94611b5aa3b8b94d5465e579c100a506faad5678","https://git.kernel.org/stable/c/d7e4ce4f399878bb46817d742387d6ed0a3114fa","https://git.kernel.org/stable/c/1871143400c7f459c647867cf544ed937dd50736","https://git.kernel.org/stable/c/dc715d660d9255ed016b41a624e5dee69c0840a4","https://git.kernel.org/stable/c/ec67981c87d574d584406ce341ab72067590069d","https://git.kernel.org/stable/c/a74c7832b11827907de560169c7d4ac94505fd87"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139072.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139072","state":"PUBLISHED","datePublished":"2026-11-30T13:27:37.403Z","dateUpdated":"2026-11-30T13:27:37.403Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.912Z"},"containers":{"cna":{"title":"drm/amdgpu: recompute the dw estimate after allocating a new VM update job","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: recompute the dw estimate after allocating a new VM update job\n\namdgpu_vm_sdma_update() keeps the number of free dwords of the current\njob in a local variable. When the job runs out of room it is committed\nand a new one is allocated, but that local variable is not refreshed and\nstill describes the job which was just submitted.\n\nThe stale value is then used to decide how many PTEs fit into the new\njob. If it happens to be copy_pte_num_dw + 7, or one more than that, the\nresult is zero. copy_pte() encodes the transfer size as count * 8 - 1,\nso a count of zero asks the engine for a 1GB copy starting inside the IB\npool. That runs off the end of the pool, faults on the first unmapped\nGART page above it and hangs the ring.\n\nRe-initialize the estimate from the newly allocated job, which is empty\nand therefore has its full budget available."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"94611b5aa3b8b94d5465e579c100a506faad5678","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d7e4ce4f399878bb46817d742387d6ed0a3114fa","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"1871143400c7f459c647867cf544ed937dd50736","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"dc715d660d9255ed016b41a624e5dee69c0840a4","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ec67981c87d574d584406ce341ab72067590069d","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a74c7832b11827907de560169c7d4ac94505fd87","versionType":"git"},{"version":"0","status":"affected","lessThan":"6.1.193","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.6.163","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.12.117","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.18.63","versionType":"semver"},{"version":"0","status":"affected","lessThan":"7.3.4","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/94611b5aa3b8b94d5465e579c100a506faad5678"},{"url":"https://git.kernel.org/stable/c/d7e4ce4f399878bb46817d742387d6ed0a3114fa"},{"url":"https://git.kernel.org/stable/c/1871143400c7f459c647867cf544ed937dd50736"},{"url":"https://git.kernel.org/stable/c/dc715d660d9255ed016b41a624e5dee69c0840a4"},{"url":"https://git.kernel.org/stable/c/ec67981c87d574d584406ce341ab72067590069d"},{"url":"https://git.kernel.org/stable/c/a74c7832b11827907de560169c7d4ac94505fd87"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:37.403Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}