Skip to contentSkip to conversation

CVE-2026-99627: drm/amdgpu/gfx12: disallow GFXOFF while updating the SPM VMID

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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)

The Linux kernel CVE team has assigned CVE-2026-99627 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.11 with commit 52cb80c12e8a647aa9c903903d58916e6c1c4d38 and fixed in 6.12.118 with commit 117e6ac89e730d647aeaf53b77420efece331f4d
	Issue introduced in 6.11 with commit 52cb80c12e8a647aa9c903903d58916e6c1c4d38 and fixed in 6.18.64 with commit cd38a2b45edf84324ee9572c09c279fd4ebec5fc
	Issue introduced in 6.11 with commit 52cb80c12e8a647aa9c903903d58916e6c1c4d38 and fixed in 7.3.5 with commit 374aba4bef461462a9640f8355ebff5d5021c459
	Issue introduced in 6.11 with commit 52cb80c12e8a647aa9c903903d58916e6c1c4d38 and fixed in 7.4-rc2 with commit d1551515a3258b43cba60bd7f45bbdd1f4e9e60a

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99627

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/117e6ac89e730d647aeaf53b77420efece331f4d
	https://git.kernel.org/stable/c/cd38a2b45edf84324ee9572c09c279fd4ebec5fc
	https://git.kernel.org/stable/c/374aba4bef461462a9640f8355ebff5d5021c459
	https://git.kernel.org/stable/c/d1551515a3258b43cba60bd7f45bbdd1f4e9e60a