CVE-2026-99984: drm/amdkfd: fix NULL deref in SDMA HQD debugfs dump on GC 12.1
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: fix NULL deref in SDMA HQD debugfs dump on GC 12.1
Reading the KFD HQD debugfs node (dqmdebugfshqds) on a gc1210 part oopses with a NULL pointer dereference:
BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: hqdsdmadumpv121+0x6a [amdgpu] Call Trace: dqmdebugfshqds+0x2da/0x360 [amdgpu] kfddebugfshqdsbydevice+0x74/0xa0 [amdgpu] seqread ... x64sysread
getsdmarlcregoffset() assumes an interleaved layout where the second SDMA per XCC lives in a separate SDMA1HWIP register aperture. On gc1210 that aperture does not exist.
Rewrite getsdmarlcregoffset() to mirror sdmav71getregoffset(): base the offset on adev->regoffset[GCHWIP][xccid][0] and add the per-instance SDMA1 offset for the odd instance.
(cherry picked from commit 94b2c5b06d37adc0e9a23138252758657b64b58a)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 94b2c5b06d37adc0e9a23138252758657b64b58a