From mboxrd@z Thu Jan 1 00:00:00 1970 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 038F4494826 for ; Fri, 25 Sep 2026 10:31:47 +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=1790332308; cv=none; b=AnPl7hGkNJJGP6C8geNEEngJAdC2GZ3OOGKFoj5cn+NWLmWzoygoJtgO4jA9XQVjlsD7W57NTEASGPOapHuAAodryTsXk0U07ZmdBSIt1FXx8g1Y0pSz7Ujy3bOs1eOluDzRmBjMySe3tcc4YJD/BXfQnPQipWaUyt4deJuu4cU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332308; c=relaxed/simple; bh=2Tw3M+w5FAwpwmO++1QIohYcs+9Kb14LRVqz/OwPZjg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jd5UPOArXT8hEqywEhgip1n2JQ1E9Bg9+WG574A8t7AfqUEFKoH6vq0JEir6/AiCrMN+a58sP4ZFwGC5UqBJoeS5Gur8EMzsmdn5pLNHlunFhLCEb/BBXOkKj0MloEqr2FN+sx1LivweuAEc3CHR8K4QkfzEJsW3zQPh3oF9zIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lIb+xD+o; 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="lIb+xD+o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E0091F00893; Fri, 25 Sep 2026 10:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332306; bh=mOGLlG3V9Ma4jULbb8GUEyCKp9ZgyXKwIETIBc0sXFg=; h=From:To:Cc:Subject:Date:Reply-To; b=lIb+xD+oK/umYEHX05FOiVdNvaEVHJwygIA36Vd4Y+xsl0h3lIdGWKKpPPui7qvT1 dVT9YgjRQMXrLjkxFRi6paOWDbEB2nEvVteP46uPklM5b0a7rnuKqC4lWlxpc7Fvpe Llu6oWortjCZXvBnGwA8C3pqDm6ulctz+RTkunm4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97946: x86/amd_node: Fix PCI device reference counting in amd_smn_init() Date: Fri, 25 Sep 2026 12:24:09 +0200 Message-ID: <2026092513-CVE-2026-97946-cdcf@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=2773; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XD1YO6tGANV6g+eoi+WwmvaxuTk0Y6/XSjMZHurQGlQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvEMNnKL/PBQ5a7rtjqr/jhKuQs2Gp9qcuh13ZTVu9 j3criHWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMpDmOYH5+wZqnz3tr+IwqB 4h9DztnFZs4yY1jQdeOqeeu9+vCX5pVMed9OHwo8Uy8KAA== 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 PCI device reference counting in amd_smn_init() The local "root" pointer is a temporary variable used during the device search. Therefore, refcount related to the search iterators should be cleaned up after the search is complete. Use the __free() cleanup macro to ensure the refcount is decremented when the temporary pointer goes out of scope. Additionally, increment the refcount when caching a root pointer. This ensures the in-use refcount is separate from the temporary search refcounting. Finally, drop the redundant "root = NULL" before the second search loop. The pci_get_class() iterator always decrements the refcount of its "from" argument, so the first loop can only fall through with "root" already NULL. The Linux kernel CVE team has assigned CVE-2026-97946 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 0a4b61d9c2e496b5f0a10e29e355a1465c8738bb and fixed in 6.18.53 with commit 84e3a71d11d8593c127b468d75b2653af5074f81 Issue introduced in 6.18 with commit 0a4b61d9c2e496b5f0a10e29e355a1465c8738bb and fixed in 7.2.7 with commit aa2a4277ad42fd8f918c6dc652473946a253f7b0 Issue introduced in 6.18 with commit 0a4b61d9c2e496b5f0a10e29e355a1465c8738bb and fixed in 7.3-rc4 with commit 27600805e62f800bacf990354632eae4e487d34c Issue introduced in 6.17.8 with commit c4ad899a33198ab6335732c769835d035e66894a 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-97946 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/84e3a71d11d8593c127b468d75b2653af5074f81 https://git.kernel.org/stable/c/aa2a4277ad42fd8f918c6dc652473946a253f7b0 https://git.kernel.org/stable/c/27600805e62f800bacf990354632eae4e487d34c