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 563993002A0 for ; Thu, 25 Jun 2026 08:42:57 +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=1782376978; cv=none; b=Cp9og+c+8cTRKWZVr0UArLRqb5QSTqNSSGiEOl43SL2FI0jW9W40j+Hiwu5eJrl+Z0FjrHv7d9oM5/Pay0WdCmCr6O2xjuiBjRaGGe/dyT0sWfDhWkkf2G2Zm0r8zOay/k4sp+Cx1a58TCgHTT/B3MjeKRNXR6OigRBkLhdcetU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782376978; c=relaxed/simple; bh=zlC2FDqX2U2AkRFcTE+vyr5oPGNZj0DNOpBvEG4TZrg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sOvheVyfpS1mmOlWHbB4e8nWaJjXT8UA08czaR4hr+1fSWV2wPW7AzRFvV3q1pu+zm5B07izAoe9VkGv8z1OW1PvOnjGzNQbkQ6E9KizxnCtn61zOCSCh9UM98DWl9eE5eARN0oUPFvDb43NbUMbRJW79AKgjoH7TN7MvwWVWCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VDhXP5gr; 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="VDhXP5gr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 909CE1F000E9; Thu, 25 Jun 2026 08:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782376977; bh=BNLV/82j9YbojN7x8QuGUsZRpNlYM76kyhejF6ffw1U=; h=From:To:Cc:Subject:Date:Reply-To; b=VDhXP5grmfYUkme58do9wjNhnQaLh/MPXeET0byFw1GPiW50MGGvVyw6zJ7HvA5YU iw7FLQWUnlEKTf6+yM7jmGbJmcjRiKJ8YtxVh8ATzz5t0zJ/Zx+fjVoUJlbn5xzPwU Uf4qKDG87ZX7cGfxhKisyhnNLfLShNk/q8RiZ1/Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53144: drm/amdkfd: fix NULL dereference in get_queue_ids() Date: Thu, 25 Jun 2026 09:39:52 +0100 Message-ID: <2026062545-CVE-2026-53144-bd58@gregkh> X-Mailer: git-send-email 2.54.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=3344; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uNDDpPcBvKNE3bG0soSRw3x5aeuAhUTfvavwsLZuEqY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2LwP16rScWX6/2lXgbxda8sMm6Mof0aD7x/g/9Dy8L ffuRPmRjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIvzjD/NxtZdvF+KxvfUle FfijLEdt6ru3Egzz1JJ0pTkSFfxzTJiXK1zsZJGPqpgBAA== 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 dereference in get_queue_ids() When usr_queue_id_array is NULL and num_queues is non-zero, get_queue_ids() returns NULL. The callers check only IS_ERR() on the return value; since IS_ERR(NULL) == false the check passes, and suspend_queues() calls q_array_invalidate() which immediately dereferences NULL while iterating num_queues times. Userspace can trigger this via kfd_ioctl_set_debug_trap() by supplying num_queues > 0 with a zero queue_array_ptr, causing a kernel panic. A NULL usr_queue_id_array with num_queues == 0 is a legitimate no-op (q_array_invalidate never executes, and resume_queues already guards all queue_ids dereferences behind a NULL check). Return ERR_PTR(-EINVAL) only when num_queues is non-zero and the pointer is absent; both callers already propagate IS_ERR() returns correctly to userspace. (cherry picked from commit f165a82cdf503884bb1797771c61b2fcc72113d4) The Linux kernel CVE team has assigned CVE-2026-53144 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit a70a93fa568b4f05aba548dadb673703eccf5480 and fixed in 6.6.143 with commit 62bd09e23a23da70f9aae02748eba3e6bd93095d Issue introduced in 6.5 with commit a70a93fa568b4f05aba548dadb673703eccf5480 and fixed in 6.12.94 with commit daeceb0fe2a19651c58bbfa3d9d515ecb6ca8996 Issue introduced in 6.5 with commit a70a93fa568b4f05aba548dadb673703eccf5480 and fixed in 6.18.36 with commit 72e259a32084c42816152c346096d2edd4213e23 Issue introduced in 6.5 with commit a70a93fa568b4f05aba548dadb673703eccf5480 and fixed in 7.0.13 with commit e1965e8913cfbf17622ca12638e7a07f68ba0848 Issue introduced in 6.5 with commit a70a93fa568b4f05aba548dadb673703eccf5480 and fixed in 7.1 with commit 2bd550b547deabef98bd3b017ff743b7c34d3a6d 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-53144 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_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/62bd09e23a23da70f9aae02748eba3e6bd93095d https://git.kernel.org/stable/c/daeceb0fe2a19651c58bbfa3d9d515ecb6ca8996 https://git.kernel.org/stable/c/72e259a32084c42816152c346096d2edd4213e23 https://git.kernel.org/stable/c/e1965e8913cfbf17622ca12638e7a07f68ba0848 https://git.kernel.org/stable/c/2bd550b547deabef98bd3b017ff743b7c34d3a6d