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 50F733B7746 for ; Tue, 6 Oct 2026 08:46:09 +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=1791276371; cv=none; b=dj+S3lqaWH65iqLRySbkwA/+M0eNkGZV1kgQJp67DVYcI3xqpWYk35ynFDq3aHf9PfhxTjvU7og/D7uEbdHp5T6WcaKZnPQjb3zDK+EdYqPERN6hDpeomE+hRhbab3+T/CAqx3kdVLoMopOQfKJ5PqstamLC2wKj0sU03/AdTkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276371; c=relaxed/simple; bh=qLVZNsGHq6fvK55FfZJJbF49FPga4dpcKGUA8YvFRP4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rwgXvAsXN/m7VTsqlhNmAzT/M2z5Oi2cJLqMd45Zvfp8eElsWYFbgpFE8sgGKEcQYN/ouzkSfo8IKeWKl0sQg5O90xSgcXUshBZsQArAGoW4Pr+ydJAiVHozNK/LHCvKN/7AOl3zCgq/0aXUxx3SG/Qbfx1KLqNhJLjUXUV+WWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jpwwzvEg; 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="jpwwzvEg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E1C81F000FF; Tue, 6 Oct 2026 08:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276369; bh=s9RGX3IopKrQVSz3KnHhSLWlzKcBf74cmN2vroMB45s=; h=From:To:Cc:Subject:Date:Reply-To; b=jpwwzvEgtTRyfZGlbUaT1QjFVcwTH1VyPKwV1g1Aej5gYe6PJFRdJHZ6OAhm9q71f nTRjnDCI6l1fA82AX+jP/RhTzne4M7pKpIHj3jGCFK9i03CZ5LTp2D+eNDHKOFbjbV A3jK5GEQ3jJv8Bg5GYDVVT/43z/nNBMGRVOhq3ao= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98178: drm/amdgpu: Skip KFD mapping clear before initialization Date: Tue, 6 Oct 2026 10:44:39 +0200 Message-ID: <2026100632-CVE-2026-98178-8dcf@gregkh> X-Mailer: git-send-email 2.56.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=2446; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hzAzBJoi3q+ljWGkPKAlpcjElbhkBkBNB7ut2xtfqdE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtnyIWlxzrZL9TdyNQ9e88vhfv3i1PK50XfA9Zk/z5 VmbIvfu7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJbJvAMN/tIQf/V8EC/0Pq BgfiusLNDZ3CjRjm8E5qv/dZhoWLy3992M3tIhtbU/sXAgA= 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/amdgpu: Skip KFD mapping clear before initialization amdgpu_amdkfd_clear_kfd_mapping() assumes that a non-NULL kfd_dev has a fully populated node array. This is not true when KFD device initialization fails after probe. For example, kgd2kfd_device_init() sets num_nodes before checking PCIe atomics support. On Polaris systems without the required atomics, it returns before allocating nodes[0], but the kfd_dev remains attached to the amdgpu device. A later GPU reset then dereferences nodes[0]->id. Require the authoritative KFD initialization flag before walking the node array, matching the existing KFD reset and teardown paths. (cherry picked from commit 4ac1835823c47903fbb278bbf474773c46f59edc) The Linux kernel CVE team has assigned CVE-2026-98178 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit 70cadefcc6160c575b04f763ada34c20e868d577 and fixed in 7.2.8 with commit 157d3f1db7e7e6f320daa221fae84a4c13555b6f Issue introduced in 7.2 with commit 70cadefcc6160c575b04f763ada34c20e868d577 and fixed in 7.3-rc4 with commit 7f9caa70aef0950e06d395ca0035831214d88187 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-98178 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.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/157d3f1db7e7e6f320daa221fae84a4c13555b6f https://git.kernel.org/stable/c/7f9caa70aef0950e06d395ca0035831214d88187