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 7C3393D1CC6 for ; Fri, 28 Aug 2026 06:51:30 +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=1787899891; cv=none; b=qiSGnqCqU4Kx8gq+VAEqlbMHehNXxbGYMJdq49bhFMK+3yomrFzG8oBSJ+Ty5IevTG2zxGFwTERE0rcvNYqWaDX8b3UT6/Z+x6lLG3PD9ua+PRAXIdTR8dfhizUbR9fXmThN5XbNMTcoRAhFpYVIJgsnHcIylPuKSKy1sjIAP6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899891; c=relaxed/simple; bh=ALu4ULm0eKGjHyj2qfVLSRd62i9sJexdvq+UAX6vUlc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CYBt8vrxQU8pIB+ET7o+FwUjLwuNWqESpagBATmYZEralAkouhVBFo/s2rfpFKAPFgjls7quMhStH3ONdGQPCQNvUUoe4qI3s5k7jh+ZJqEjXdqdy5krVGX4rARRmpZYILcgHIB+QGV6utDdDuLpuy3ycO6+CQdVSssQP6UOeHI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CEXuyqj3; 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="CEXuyqj3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6DEB1F000E9; Fri, 28 Aug 2026 06:51:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899890; bh=BR6t/AVOc0nptHdh89lahvFJV4rYa0eqjaCsZKRhmK8=; h=From:To:Cc:Subject:Date:Reply-To; b=CEXuyqj3uJc8A4Ek4yqaTewTvcDElpVz0YLD4dOB2yI2rNkSS09gbgkoFaHSmbVV4 CLDwfU/CK6uVMP26ey5fNoaIuPSi3Gabgva9t6D28SuoIwBs6gH6kV9b7++NB0oyDi XB8nOu/P//pdvoaVlgoszX3ScnEZtpyEJylcj7zo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80651: crypto: ccp/sev-dev-tsm - bail out early when pdev->bus is NULL Date: Fri, 28 Aug 2026 08:49:28 +0200 Message-ID: <2026082843-CVE-2026-80651-d51b@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=2780; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4YpxWAOZo8YyL6SKmgZQVUTNFrIIWdJoWEAeF/t2jOQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9b1nZc1gTpFPXNg8k6tIsnP7hU8OOf+CIrdeytae8 n/fjizbjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIjRPDPJ3883pOi1uYODPn 3Fj3x//D3GC5Gwzz49ktovqi18pd2ZT4trm7LtZ1xtovAA== 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: crypto: ccp/sev-dev-tsm - bail out early when pdev->bus is NULL dsm_create() initially checks pdev->bus when computing segment_id: u8 segment_id = pdev->bus ? pci_domain_nr(pdev->bus) : 0; But the next two lines unconditionally dereference pdev->bus via pcie_find_root_port() and especially pci_dev_id(pdev), which expands to PCI_DEVID(dev->bus->number, dev->devfn). If pdev->bus is in fact NULL, segment_id is initialised to 0 but the very next statement crashes the kernel. smatch flags this: drivers/crypto/ccp/sev-dev-tsm.c:253 dsm_create() error: we previously assumed 'pdev->bus' could be null (see line 251) Make the NULL handling consistent: if pdev->bus is NULL the device has no PCI context to work with and SEV TIO setup cannot proceed, so return -ENODEV before any of the bus-dependent lookups. The remaining initialisation now runs only on the path where pdev->bus is known to be valid. No change for callers where pdev->bus is non-NULL, which is the only case where dsm_create() did meaningful work before this change. The Linux kernel CVE team has assigned CVE-2026-80651 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 4be423572da1f4c11f45168e3fafda870ddac9f8 and fixed in 7.1.5 with commit 6bafd740095fb3d0e9a00540bc8f3484c38e6f85 Issue introduced in 6.19 with commit 4be423572da1f4c11f45168e3fafda870ddac9f8 and fixed in 7.2 with commit 930d9d36ea618a775985446a125aedeb401db522 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-80651 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/crypto/ccp/sev-dev-tsm.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/6bafd740095fb3d0e9a00540bc8f3484c38e6f85 https://git.kernel.org/stable/c/930d9d36ea618a775985446a125aedeb401db522