CVE-2026-99627
published high CVSS 3.1 · 7.1drm/amdgpu/gfx12: disallow GFXOFF while updating the SPM VMID
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux52cb80c12e8a647aa9c903903d58916e6c1c4d38 to < 117e6ac89e730d647aeaf53b77420efece331f4d · 52cb80c12e8a647aa9c903903d58916e6c1c4d38 to < cd38a2b45edf84324ee9572c09c279fd4ebec5fc · 52cb80c12e8a647aa9c903903d58916e6c1c4d38 to < 374aba4bef461462a9640f8355ebff5d5021c459 · 52cb80c12e8a647aa9c903903d58916e6c1c4d38 to < d1551515a3258b43cba60bd7f45bbdd1f4e9e60a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.11 (affected) · 0 to < 6.11 (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | 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 |
| Debian | trixie | linux | Advisory build | 6.12.118-1 | DSA-6652-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/gfx12: disallow GFXOFF while updating the SPM VMID gfx_v12_0_update_spm_vmid() does a read-modify-write of RLC_SPM_MC_CNTL over MMIO without keeping GFX powered, unlike gfx11. When GFX is in GFXOFF at that point the update doesn't stick, and with the SPM VMID programmed on submission again, the job of a process with a reserved VMID can still run with the SPM writing through VMID 0. On navi48, after a few other submissions and a VM fault on the same VM, a COPY_DATA of RLC_SPM_MC_CNTL from such a job reads 0 although the update was called for it: $ amd_uapi_regression --run-subtest cs-secure-ib-compute,gem-mapping-info-high-va,gpuvm-fault-high-va,reserved-vmid-spm-vmid amdgpu 0000:03:00.0: [gfxhub] page fault (src_id:0 ring:40 vmid:7 pasid:185) amdgpu 0000:03:00.0: Faulty UTCL2 client ID: SDMA1 (0xe) RLC_SPM_MC_CNTL in the job: 0x00000000 With GFXOFF disallowed around the update it reads the reserved VMID 15. (cherry picked from commit 907aebc5578ae09fa5c0e2f0784201295837e60b)
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- Scenarios
- en: AV:L - gfx_v12_0_update_spm_vmid runs from amdgpu_ib_schedule inside amdgpu_job_run, for an amdgpu_cs_ioctl whose VMID was reserved by amdgpu_vm_ioctl(AMDGPU_VM_OP_RESERVE_VMID). The RLC_SPM_MC_CNTL update is lost on that local submission while GFX is in GFXOFF. AC:L - PP_GFXOFF_MASK is set in the default amdgpu_pp_feature_mask, and amdgpu_gfx_do_off_ctrl enters GFXOFF 100ms after idle. The attacker waits for that, then submits; the MMIO read-modify-write in gfx_v12_0_update_spm_vmid happens before the doorbell and does not land while GFX is powered off. PR:L - DRM_IOCTL_DEF_DRV marks AMDGPU_VM and AMDGPU_CS DRM_AUTH|DRM_RENDER_ALLOW, and amdgpu_vm_ioctl's AMDGPU_VM_OP_RESERVE_VMID case calls amdgpu_vmid_alloc_reserved with no capability check. Any local render-node opener can reserve the VMID and submit. UI:N - The attacker opens the render node, reserves the VMID, and submits the IB that enables SPM. No other user has to mount media or take any action. S:U - The stores land in VMID 0, which gmc_v12_0 documents as the kernel's physical GPU addresses and which gfxhub_v12_0_init_system_aperture_regs maps with an AGP window. That is the same host kernel authority as the driver. C:N - The RLC SPM block stores its own counter samples to RLC_SPM_PERFMON_RING_BASE using the VMID in RLC_SPM_MC_CNTL. A stuck VMID of 0 redirects those stores and does not return the target's previous bytes to the caller. I:H - The IB enables SPM and sets RLC_SPM_PERFMON_RING_BASE_LO/HI, a 48-bit destination the kernel never programs. gfx_v12_0_update_spm_vmid fails to replace VMID 0, so the stores hit the kernel aperture (GCMC_VM_AGP_BASE is 0). Commit 460c484f2411 calls that VMID 0 overwrite the dangerous case. A:H - A VMID 0 store through the AGP or GART aperture corrupts kernel memory and can oops the host; an unmapped destination faults the gfxhub for the rest of the job. On navi48 the repro left RLC_SPM_MC_CNTL at 0 for the whole submission, so the bad writes continue until SPM is stopped.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 52cb80c12e8a647aa9c903903d58916e6c1c4d38 to < 117e6ac89e730d647aeaf53b77420efece331f4d (affected · git)52cb80c12e8a647aa9c903903d58916e6c1c4d38 to < cd38a2b45edf84324ee9572c09c279fd4ebec5fc (affected · git)52cb80c12e8a647aa9c903903d58916e6c1c4d38 to < 374aba4bef461462a9640f8355ebff5d5021c459 (affected · git)52cb80c12e8a647aa9c903903d58916e6c1c4d38 to < d1551515a3258b43cba60bd7f45bbdd1f4e9e60a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.11 (affected)0 to < 6.11 (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
drm/amdgpu/gfx12: disallow GFXOFF while updating the SPM VMID
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0837228fd1516f0b6a68fabb5fd622c0b6b57703ff215ddbd3ad0f1c1488a920
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record