{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139072","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.912Z","datePublished":"2026-11-30T13:27:37.403Z","dateUpdated":"2026-12-01T05:40:58.517Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:40:58.517Z"},"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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Reached only via the local DRM_IOCTL_AMDGPU_GEM_VA (DRM_RENDER_ALLOW) AMDGPU_VA_OP_MAP of a GTT/userptr BO on /dev/dri/renderD*: amdgpu_gem_va_update_vm -> amdgpu_vm_bo_update (pages_addr = ttm->dma_address) -> amdgpu_vm_update_range -> amdgpu_vm_ptes_update -> amdgpu_vm_sdma_update. No remote protocol carries the input.\nAC:L - The stale ndw is arithmetic on attacker choices: prepare() gives a 256-dw job, so a non-contiguous mapping with 117 PTEs before a 2MB PT boundary leaves 15 free dw; the next PTB call commits, keeps ndw=15, and 15-7-7 yields nptes=0. va_address, offset_in_bo and page order (e.g. reverse-ordered userptr pages) are attacker-chosen, and a miss takes the harmless set_ptes path and can be retried.\nPR:L - Needs only an open render node (render group/uaccess seat); amdgpu_gem_va_ioctl, amdgpu_gem_create_ioctl and amdgpu_gem_userptr_ioctl perform no capability checks, and every GEM_VA map runs the SDMA VM-update backend.\nUI:N - The attacker creates the BO, chooses the VA layout and issues the GEM_VA map themselves; no other user or administrator action is involved.\nS:U - The damaged objects are the VRAM page tables and buffers managed by the same amdgpu kernel driver that contains the bug; this is local privilege escalation within the kernel's authority, not a guest-to-host or IOMMU boundary crossing.\nC:H - With nptes=0, amdgpu_vm_sdma_copy_ptes emits COPY_LINEAR with bytes-1=0xFFFFFFFF from the end of the IB into the shared 1MB AMDGPU_IB_POOL_DELAYED, copying stale PTE arrays from other VMs' updates over the attacker's own PT, so those qwords become live PTEs that let the attacker's shaders reach system pages of foreign or freed BOs.\nI:H - The same kernel VMID0 SDMA copy keeps writing until the source read faults past the pool, i.e. up to ~1MB past the start of a 4KB PT BO: an out-of-bounds DMA write into adjacent VRAM objects such as other VMs' PDs/PTs and other clients' buffers, which a per-queue SDMA reset does not restore.\nA:H - The oversized copy faults on the first unmapped GART page above the IB pool and hangs the SDMA VM-update ring; the drm_sched timeout then forces an SDMA queue or full GPU reset that aborts every GPU client's work, and the attacker can repeat it at will by remapping."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"94611b5aa3b8b94d5465e579c100a506faad5678","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"d7e4ce4f399878bb46817d742387d6ed0a3114fa","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"1871143400c7f459c647867cf544ed937dd50736","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"dc715d660d9255ed016b41a624e5dee69c0840a4","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"ec67981c87d574d584406ce341ab72067590069d","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"a74c7832b11827907de560169c7d4ac94505fd87","status":"affected","versionType":"git"},{"version":"0","lessThan":"6.1.193","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.6.163","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.12.117","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.18.63","status":"affected","versionType":"semver"},{"version":"0","lessThan":"7.3.4","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"],"versions":[{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"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"}]}]}],"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"}],"title":"drm/amdgpu: recompute the dw estimate after allocating a new VM update job","x_generator":{"engine":"bippy-1.2.0"}}}}