# CVE-2026-80651: crypto: ccp/sev-dev-tsm - bail out early when pdev->bus is NULL

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-08-28T06:48:59.460Z
- Modified: 2026-08-28T08:16:50.110Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4be423572da1f4c11f45168e3fafda870ddac9f8 before 6bafd740095fb3d0e9a00540bc8f3484c38e6f85; from 4be423572da1f4c11f45168e3fafda870ddac9f8 before 930d9d36ea618a775985446a125aedeb401db522; 6.19 (not affected: before 6.19; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/6bafd740095fb3d0e9a00540bc8f3484c38e6f85>
- <https://git.kernel.org/stable/c/930d9d36ea618a775985446a125aedeb401db522>

## Sources

- CVE List: [CVE-2026-80651](https://www.cve.org/CVERecord?id=CVE-2026-80651), CVE Terms of Use, modified 2026-08-28
- NVD: [CVE-2026-80651](https://nvd.nist.gov/vuln/detail/CVE-2026-80651), Public domain, modified 2026-08-28

---

Page: https://cve.day/CVE-2026-80651 · Whole record: https://cve.day/CVE-2026-80651.json · Rebuilt by cve.day 2026-11-25T22:59:35.600Z
