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 EB7723F5BFD for ; Fri, 25 Sep 2026 10:31:49 +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=1790332311; cv=none; b=BzT1OtR5UeTg5728/aWJlnxQR/imc88CY9vmNw3WwTnPElh/agQN4sOjtve1bXdzmjJhR4eTHWd6ZYewh/AUU3AnuWiBuz/AlFBgQ36R/ZZHeA8NnMAa7n5hGoBQR7LpVHFI1DE7Ee0DarcIw/I45blyKTm1acn7NCJtqvgTgVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332311; c=relaxed/simple; bh=TfsM+XR+qq3XtsPzRDEcnzt6Z/Gnss3vvoXP871hNkA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EMtXNTpFlq1E0d9W6+3LkwP/UJRm7oqHO4iVJSTZUBKc7ly1CDzyVIN+4AEHWbypV4CCXC2OH6tcyXIC8ff2xFi7YZeQVzzzWC6BaM2UHaiNv1+bPmEOKNp92AYJa1A9Bj13oJ2v6gkICQU/H30e+hReXdm7LXC2e2Stmi0CKmw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rcvcdLHB; 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="rcvcdLHB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DEA91F000FF; Fri, 25 Sep 2026 10:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332309; bh=9OehZNYSnsGWN5fBTJ/ACRIHQ4q8w7yikZC08mG/bJM=; h=From:To:Cc:Subject:Date:Reply-To; b=rcvcdLHBynxYxO8cJbF5CBZz8AlH6wG9JRVQIe1hgefioeg8hIUK3xsXkg42AEfGy fGWC1ghmr+zTkW99fo68LW56CadzmR/DUbU9/EEy3dETqEtNbJMMi5rp0kOnjdJKIl bJK31nqw0tMFsuiY4PTsGDdv/sJ12WgAaSaRgij4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97947: x86/amd_node: Fix potential NULL pointer dereference Date: Fri, 25 Sep 2026 12:24:10 +0200 Message-ID: <2026092513-CVE-2026-97947-48e5@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=3058; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZUxhC/rk7nKBVRHl8byAamS6TiRW02VV/+4bB9/Lg6M=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvENvNM+eKOJ12LRY3bjYkCk0UmOp/YMNNdeXcD/d6 akbmqrVEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPRfs8wT5vL5sIPi7ebTl1k fBXFY9XxYHdJKMOC09sY+GxOBD+65252a67txwWXVeKiAA== 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: x86/amd_node: Fix potential NULL pointer dereference amd_smn_read/write() are exported functions around __amd_smn_rw(), so they are always available even if amd_smn_init() fails. In that case, 'amd_roots' is NULL and __amd_smn_rw() will access uninitialized memory. Then, commit: 83518453074d ("x86/amd_node: Add SMN offsets to exclusive region access") added the 'smn_exclusive' flag, which indicated the calls to pci_request_config_region_exclusive() succeeded, to prevent concurrent userspace access. Commit: 0a4b61d9c2e4 ("x86/amd_node: Fix AMD root device caching") re-ordered initialization so pci_request_config_region_exclusive() is called earlier and a failure exits amd_smn_init() before allocating 'amd_roots'. The setting of 'smn_exclusive' moved to the end of amd_smn_init(), after 'amd_roots' is allocated. It became redundant and can be removed. Replace 'smn_exclusive' with directly checking 'amd_roots', to fix a potential NULL pointer dereference and to simplify the logic. [ bp: Reorg commit message, touchup comment. ] [ mingo: Rebase & further touchups. ] The Linux kernel CVE team has assigned CVE-2026-97947 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 77466b798d59d6761501ff36094cf430d3876549 and fixed in 6.18.53 with commit fcd19bc829eca237742a3b123f839ad1c473ec85 Issue introduced in 6.14 with commit 77466b798d59d6761501ff36094cf430d3876549 and fixed in 7.2.7 with commit a797a2331e5d2ecdbccbae222ea71c759fdb2c2b Issue introduced in 6.14 with commit 77466b798d59d6761501ff36094cf430d3876549 and fixed in 7.3-rc3 with commit aefdbd574a362dcf7569bada6d72f64a006b9fb9 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-97947 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: arch/x86/kernel/amd_node.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/fcd19bc829eca237742a3b123f839ad1c473ec85 https://git.kernel.org/stable/c/a797a2331e5d2ecdbccbae222ea71c759fdb2c2b https://git.kernel.org/stable/c/aefdbd574a362dcf7569bada6d72f64a006b9fb9