From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796045698; b=X8kwGAWeRZX4FeejhKgPfb7gnKTA6sSXG4vPfrkLTtZEMKfKqcIUfL+4lqMNcy+GyejN W8QP/CvV/PStUleIKcniRt0zTlWzreIBiZNl7Mjci78w2DsxS+hZ4/8yyGeGni5SXiyJ2 /zjDsZARuAO5kt/gG0kh2xpY9Ixh3LKXVcBnXHWwt1pn5xJMjuDuev4bBjY1PanrPUMOg ylDoXq+BNTyj9SYVKW61eXWr61A/FFJqRkIMcgM7uoFR/cFgP9NoVnpIuLKeqecvrpI2B pkuQjSS02L1eQ06aCiNSRnssP2omc6IDERVtYAu5L2uwKqL9hPrJjyMADVufOoz+Z+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045698; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=Cjkv3l0m9rpuTWk58GSS9GcdAiZglONJKKgr6yqzbms=; b=4US3+ugOf9sh3cAkF6y4sBelEF74q5o2zI6a52Hv7Mx1IlcZfCaWqXlF+QiUSpy69p9C 4m4oUUImPFLRhGfGbiDONxpLENh3f3DIXT58C80GXOY1V09e3kywIRpzvKBBr8dwQaGtW w7K65TtFUJXPQGXLD5nk4QV9JsaUI9vIBdbJoBnSG/ZAi3Xf6M+7cb5+T4vs0o1jqbBRH wRqgcnDoJhVfqtGJxRSWhYvjOfTovXLD9svuqTuLiUk/SGotqPIEEXM5ALvlt3JbGf0Vc Z/vsZly2Bf/H4hb9SU7NXWsd1ur1OE3i6AoG+fPoM/FSIX4+qrLBkurNHoq2fJgTQQw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=xzm+QLGI; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C924F606A31C for ; Mon, 30 Nov 2026 13:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=xzm+QLGI Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B3011F000C1; Mon, 30 Nov 2026 13:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796045698; bh=Cjkv3l0m9rpuTWk58GSS9GcdAiZglONJKKgr6yqzbms=; h=From:To:Cc:Subject:Date:Reply-To; b=xzm+QLGIZwn+jl8rupaqhSgUKybe5v7LEXK2q48rlU7dk8gWzjTYHzhcF1cpN3zDT JyiqgYpbvPspl4sxIcWjbb6c93iCS9Pzf/ameN9Bv+2tkXcfeWrln5VBIAgd31manE TlpGBP76dt06Ux1U8dxjaKRUVNJrN+ZGSn4aaVCI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99984: drm/amdkfd: fix NULL deref in SDMA HQD debugfs dump on GC 12.1 Date: Mon, 30 Nov 2026 14:20:14 +0100 Message-ID: <2026113003-CVE-2026-99984-d44e@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2665; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dgWvsV0cR3jOM3hukbxeMdoa720IrK0JuC9xVohIdLg=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm85d1LpyW4b7MriVx2WU1nzb47LpsYl0zui/TPmhHVt mQJz56zHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRxFCG2WyMz/Jn7uO6+6h4 kdGMqEXnz8tss2BYMFdKkzc46Yn5tu5q06vMi7aJNqy2AgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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) The Linux kernel CVE team has assigned CVE-2026-99984 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 7bd5d763b8e125bec578ab66ce5d90a4c83e1bff and fixed in 7.3.4 with commit b01c68b7f1ec75af84d9d62ea61cf1202cd8952e Issue introduced in 7.0 with commit 7bd5d763b8e125bec578ab66ce5d90a4c83e1bff and fixed in 7.4-rc1 with commit 0fe236afa2b9b28540fa1f8c789ef5d499c5d0ee 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-99984 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/amdgpu_amdkfd_gfx_v12_1.c drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.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/b01c68b7f1ec75af84d9d62ea61cf1202cd8952e https://git.kernel.org/stable/c/0fe236afa2b9b28540fa1f8c789ef5d499c5d0ee