Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139072

published high CVSS 3.1 · 7.8

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

Published
30 Nov 2026, 13:27:37 UTC
Updated
01 Dec 2026, 05:40:58 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 94611b5aa3b8b94d5465e579c100a506faad5678 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d7e4ce4f399878bb46817d742387d6ed0a3114fa · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1871143400c7f459c647867cf544ed937dd50736 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < dc715d660d9255ed016b41a624e5dee69c0840a4 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ec67981c87d574d584406ce341ab72067590069d · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a74c7832b11827907de560169c7d4ac94505fd87 · 0 to < 6.1.193 · 0 to < 6.6.163 · 0 to < 6.12.117 · 0 to < 6.18.63 · 0 to < 7.3.4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.1.193 through 6.1.* · 6.6.163 through 6.6.* · 6.12.117 through 6.12.* · 6.18.63 through 6.18.* · 7.3.4 through 7.3.* · 7.4-rc1 and later · Other versions: affected Unaffected Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 94611b5aa3b8b94d5465e579c100a506faad5678 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d7e4ce4f399878bb46817d742387d6ed0a3114fa (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1871143400c7f459c647867cf544ed937dd50736 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < dc715d660d9255ed016b41a624e5dee69c0840a4 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ec67981c87d574d584406ce341ab72067590069d (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a74c7832b11827907de560169c7d4ac94505fd87 (affected · git)0 to < 6.1.193 (affected · semver)0 to < 6.6.163 (affected · semver)0 to < 6.12.117 (affected · semver)0 to < 6.18.63 (affected · semver)0 to < 7.3.4 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
b10728280a57d2ddcf956c1d2d16d8906493d6db8c14849660da3e2a65dfc270
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected