Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 155194E66A7 for ; Wed, 16 Sep 2026 10:33:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554826; cv=none; b=AYBV3BQex6xTcVYkzsZfO4YDFETeZer9vm15pVEXTq3pEINMDVVA38q0Y03zT91FnSbhsDhg7CLhjSmr9JSMj/HTp3t4l82Kb+2Lpyd2PtR4XS3o1Kk+8iz5EUjJIw/p/w5j6aaW7gkNYsEIa2y4VAv3MQn3i/JRa2xmPxkQH1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554826; c=relaxed/simple; bh=K/5d5BqvWb5obtYhDsmP/7dUAScUOC8oAPPumJowwhc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LtxaRXNCphuTk+v23NeomyOIId9rfe5EBXSQmTWmKhnwgF3x/pYUK0ZZLkDYUsg098LEJiziXlfJEhtuQT0F47/N++BoLCnzdWvPZ2F9rMb3jJzVgs6hRdCB7dFmaWqbN+qhmaPmlGf2BTJtCGuWhiuH1uKz509arHLp8o8QBkk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=njo56jx8; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="njo56jx8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E2BF1F0089C; Wed, 16 Sep 2026 10:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554798; bh=uf2ADXjSfEt6pyac6fd75sAPMq4R8vSdZRWY+69/S1U=; h=From:To:Cc:Subject:Date:Reply-To; b=njo56jx8llBXNbyBjKmL8HhMERxkMIt3mZI63IzKsdG3tjzfXEFBHCrW+vecWNVPZ 3i/mFmy05jLfq/j5tROdU7uf53MLP1vKEBrqEjbvAVZAmb2ysiHiPBesCABHqsZaWf xn3K1zWa+uRXe/g+bh1rCfkgXTaYgtNvhT6sQbzM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89809: drm/amdkfd: fix scope of mqd_mgr dereference in pqm_debugfs_mqds Date: Wed, 16 Sep 2026 11:28:59 +0100 Message-ID: <2026091655-CVE-2026-89809-00e3@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3066; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YBPDkWIEdh0JyOAR6D5dZlWeLJ0sydLwZFAOYNdzYn4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8tPTThi8+ihasvGUU0HvmoulvMZN52beOC1mdqQgq irY4EZZRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk5y2GBcsTz6jd194189Sh 6CBPqSIR06DWPIb5vqV2l9anVL/p3v78AX8x11vJAy1yAA== 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 scope of mqd_mgr dereference in pqm_debugfs_mqds Reading /sys/kernel/debug/kfd/mqds while a process holds an active KFD queue triggers a NULL pointer dereference because the for loop that calls mqd_mgr->debugfs_show_mqd() is incorrectly placed outside the if (pqn->q) block that initializes mqd_mgr. The queue list can contain entries where pqn->q is NULL (kernel queues where only pqn->kq is valid). In the original code: if (pqn->q) { ... mqd_mgr = q->device->dqm->mqd_mgrs[mqd_type]; size = mqd_mgr->mqd_stride(...); } for (xcc = 0; xcc < num_xccs; xcc++) { // WRONG: outside if block mqd = q->mqd + size * xcc; r = mqd_mgr->debugfs_show_mqd(m, mqd); } When iterating over a queue node where pqn->q is NULL: 1. The if (pqn->q) block is skipped 2. mqd_mgr remains uninitialized (NULL from declaration) 3. The for loop executes anyway 4. mqd_mgr->debugfs_show_mqd(m, mqd) dereferences NULL The crash manifests as: BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode RIP: 0010:0x0 Call Trace: pqm_debugfs_mqds+0x10c/0x1d0 [amdgpu] kfd_debugfs_mqds_by_process+0x9b/0x110 [amdgpu] seq_read_iter+0x132/0x4b0 ... Fix by moving the for loop inside the if (pqn->q) block, so mqd_mgr and related variables are only used when properly initialized. (cherry picked from commit 8bfe29d5c798940f797aa24135d2734c3ffce9de) The Linux kernel CVE team has assigned CVE-2026-89809 to this issue. Affected and fixed versions =========================== Fixed in 7.2.5 with commit 58e866711b234571b0ce342c43d153a4786b32b8 Fixed in 7.3-rc2 with commit 012a026bae0212952b423a842b7e2c0bf21f8e7a 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-89809 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/amdkfd/kfd_process_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/58e866711b234571b0ce342c43d153a4786b32b8 https://git.kernel.org/stable/c/012a026bae0212952b423a842b7e2c0bf21f8e7a