Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 34453205513 for ; Tue, 1 Apr 2025 15:42:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522145; cv=none; b=bnv5JtV0TKxeuUDILOvQYafOmMkOKc1fFtVYOQ5/GXmT1/JOnnh/6L5XeN+U8i9XwYhfaIX3FH1rkS1G4RPzmCS1ZlMIUFWmPTJloskcQ1qyN9RLlc5UAPPVvOiWhOnHEMqDnSut1Qbr+roFwxa8zlX1BJSGAzN+3W51x2KrHxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522145; c=relaxed/simple; bh=plee3eCcndP2PtER9Ao/UssCjk1mwvQ+SYbv+eqSIvU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PbRqZ5a4bNWVzFj5hwK7HnPX1XDTfWZzWgageOubcFgAJTQ7Jo4xOx2WpdyIEdkFnaYf8RWpaBA8OZxvvkLLcKTlycakdDWDQGCio+2B53RAH0u5goaa9NPl7T4Kx+21vbKHD6bOyCiOupGUsY+FtwPMWkzJd/jdqOlBb/LsZNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tdKWNauG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tdKWNauG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C144AC4CEE4; Tue, 1 Apr 2025 15:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522145; bh=plee3eCcndP2PtER9Ao/UssCjk1mwvQ+SYbv+eqSIvU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tdKWNauGls9J2ltgrxAc1Q2JIre2MJzasHjMfqav/mLhwBawWy1vQlq8KY4hwx7C3 xAD/cxWI/74irvF5P37PKlg6zR6x6PdKmcQpwsmpfjjyHJcn0rWXX8sNYlfiyRaKjn zPCv5ENusg/iepModAAuQ+tKj7YSFK1gO0Ia95oA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21940: drm/amdkfd: Fix NULL Pointer Dereference in KFD queue Date: Tue, 1 Apr 2025 16:40:04 +0100 Message-ID: <2025040135-CVE-2025-21940-f9e9@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2183; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=plee3eCcndP2PtER9Ao/UssCjk1mwvQ+SYbv+eqSIvU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvOLbPWPDJunpGdmiqubw7szSnhdHzB1MWdZ65cfiF1 erWBxMSO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiVkoMC6auWGpl8mDzU2up V+rLYyakednOusEwV15lr/ucRId6c8UzZ3O/pn6L2sI6DwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix NULL Pointer Dereference in KFD queue Through KFD IOCTL Fuzzing we encountered a NULL pointer derefrence when calling kfd_queue_acquire_buffers. (cherry picked from commit 049e5bf3c8406f87c3d8e1958e0a16804fa1d530) The Linux kernel CVE team has assigned CVE-2025-21940 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 629568d25fea8ece4f65073f039aeef4e240ab67 and fixed in 6.12.19 with commit c3cbeafb4e0001d9146df50b470885e02664f3c7 Issue introduced in 6.12 with commit 629568d25fea8ece4f65073f039aeef4e240ab67 and fixed in 6.13.7 with commit 33eb8041c5d6c19d46e7bfd23a031844336afd80 Issue introduced in 6.12 with commit 629568d25fea8ece4f65073f039aeef4e240ab67 and fixed in 6.14 with commit fd617ea3b79d2116d53f76cdb5a3601c0ba6e42f 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-2025-21940 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_queue.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/c3cbeafb4e0001d9146df50b470885e02664f3c7 https://git.kernel.org/stable/c/33eb8041c5d6c19d46e7bfd23a031844336afd80 https://git.kernel.org/stable/c/fd617ea3b79d2116d53f76cdb5a3601c0ba6e42f