{"id":"CVE-2026-99984","summary":"drm/amdkfd: fix NULL deref in SDMA HQD debugfs dump on GC 12.1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: fix NULL deref in SDMA HQD debugfs dump on GC 12.1\n\nReading the KFD HQD debugfs node (dqm_debugfs_hqds) on a gc_12_1_0 part\noopses with a NULL pointer dereference:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000000\n  RIP: hqd_sdma_dump_v12_1+0x6a [amdgpu]\n  Call Trace:\n   dqm_debugfs_hqds+0x2da/0x360 [amdgpu]\n   kfd_debugfs_hqds_by_device+0x74/0xa0 [amdgpu]\n   seq_read ... __x64_sys_read\n\nget_sdma_rlc_reg_offset() assumes an interleaved layout where the second\nSDMA per XCC lives in a separate SDMA1_HWIP register aperture. On\ngc_12_1_0 that aperture does not exist.\n\nRewrite get_sdma_rlc_reg_offset() to mirror sdma_v7_1_get_reg_offset():\nbase the offset on adev-\u003ereg_offset[GC_HWIP][xcc_id][0] and add the\nper-instance SDMA1 offset for the odd instance.\n\n(cherry picked from commit 94b2c5b06d37adc0e9a23138252758657b64b58a)","modified":"2026-12-01T21:02:34.328605202Z","published":"2026-11-30T13:18:52.912Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99984.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0fe236afa2b9b28540fa1f8c789ef5d499c5d0ee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b01c68b7f1ec75af84d9d62ea61cf1202cd8952e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99984.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99984"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7bd5d763b8e125bec578ab66ce5d90a4c83e1bff"},{"fixed":"b01c68b7f1ec75af84d9d62ea61cf1202cd8952e"},{"fixed":"0fe236afa2b9b28540fa1f8c789ef5d499c5d0ee"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99984.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99984.json"}}],"schema_version":"1.9.2"}