# CVE-2026-99984: drm/amdkfd: fix NULL deref in SDMA HQD debugfs dump on GC 12.1

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:52.912Z
- Modified: 2026-11-30T14:20:41.463Z
- Assigned by: Linux

## Description

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 (dqm_debugfs_hqds) on a gc_12_1_0 part
oopses with a NULL pointer dereference:

  BUG: kernel NULL pointer dereference, address: 0000000000000000
  RIP: hqd_sdma_dump_v12_1+0x6a [amdgpu]
  Call Trace:
   dqm_debugfs_hqds+0x2da/0x360 [amdgpu]
   kfd_debugfs_hqds_by_device+0x74/0xa0 [amdgpu]
   seq_read ... __x64_sys_read

get_sdma_rlc_reg_offset() assumes an interleaved layout where the second
SDMA per XCC lives in a separate SDMA1_HWIP register aperture. On
gc_12_1_0 that aperture does not exist.

Rewrite get_sdma_rlc_reg_offset() to mirror sdma_v7_1_get_reg_offset():
base the offset on adev->reg_offset[GC_HWIP][xcc_id][0] and add the
per-instance SDMA1 offset for the odd instance.

(cherry picked from commit 94b2c5b06d37adc0e9a23138252758657b64b58a)

(As written by CVE List.)

## Affected

- Linux Linux: from 7bd5d763b8e125bec578ab66ce5d90a4c83e1bff before b01c68b7f1ec75af84d9d62ea61cf1202cd8952e; from 7bd5d763b8e125bec578ab66ce5d90a4c83e1bff before 0fe236afa2b9b28540fa1f8c789ef5d499c5d0ee; 7.0 (not affected: before 7.0; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b01c68b7f1ec75af84d9d62ea61cf1202cd8952e>
- <https://git.kernel.org/stable/c/0fe236afa2b9b28540fa1f8c789ef5d499c5d0ee>

## Sources

- CVE List: [CVE-2026-99984](https://www.cve.org/CVERecord?id=CVE-2026-99984), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99984](https://nvd.nist.gov/vuln/detail/CVE-2026-99984), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99984 · Whole record: https://cve.day/CVE-2026-99984.json · Rebuilt by cve.day 2026-11-30T14:33:50.155Z
