drm/amdgpu/gfx12: disallow GFXOFF while updating the SPM VMID
NIST has received this entry but not started reviewing it.
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)
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 52cb80c12e8a647aa9c903903d58916e6c1c4d38, before 117e6ac89e730d647aeaf53b77420efece331f4d; from 52cb80c12e8a647aa9c903903d58916e6c1c4d38, before cd38a2b45edf84324ee9572c09c279fd4ebec5fc; from 52cb80c12e8a647aa9c903903d58916e6c1c4d38, before 374aba4bef461462a9640f8355ebff5d5021c459; from 52cb80c12e8a647aa9c903903d58916e6c1c4d38, before d1551515a3258b43cba60bd7f45bbdd1f4e9e60a | 117e6ac89e730d647aeaf53b77420efece331f4d; cd38a2b45edf84324ee9572c09c279fd4ebec5fc; 374aba4bef461462a9640f8355ebff5d5021c459; d1551515a3258b43cba60bd7f45bbdd1f4e9e60a |
| Linux Linux | Software | 6.11 | not recorded |
The 7.1 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | None | No data can be read. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.2 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 4 sources for this flaw, none tagged as a vendor patch.