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

Published Aug 28, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

dsmcreate() initially checks pdev->bus when computing segmentid:

u8 segmentid = pdev->bus ? pcidomainnr(pdev->bus) : 0;

But the next two lines unconditionally dereference pdev->bus via pciefindrootport() and especially pcidevid(pdev), which expands to PCIDEVID(dev->bus->number, dev->devfn). If pdev->bus is in fact NULL, segmentid is initialised to 0 but the very next statement crashes the kernel.

smatch flags this:

drivers/crypto/ccp/sev-dev-tsm.c:253 dsmcreate() 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 dsmcreate() did meaningful work before this change.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel crypto: ccp/sev-dev-tsm to a version that resolves this vulnerability.

    Patch crypto: ccp/sev-dev-tsm - bail out early when pdev->bus is NULL
  2. Configuration

    In dsm_create(), add consistent NULL handling: if pdev->bus is NULL, bail out early by returning -ENODEV before calling any bus-dependent functions (e.g., pci_domain_nr(pdev->bus), pcie_find_root_port(), or pci_dev_id(pdev)) and only initialise segment_id for the NULL case (segment_id initialised to 0).

    drivers/crypto/ccp/sev-dev-tsm.c (dsm_create) pdev->bus NULL handling = return -ENODEV before any bus-dependent lookups
  3. Compensating control

    Ensure callers handle a possible -ENODEV return from dsm_create() when pdev->bus is NULL (SEV TIO setup cannot proceed without PCI context).

Event History

Aug 28, 2026
CVE Published
via MITRE·06:48 AM
Data Sourced
via MITRE·06:48 AM
Description

Frequently Asked Questions

1

What systems are exposed to the crash condition?

The condition is limited to SEV TIO setup in the Linux kernel when dsm_create() is called for a device whose pdev->bus pointer is NULL. Devices with a valid PCI bus are not affected by this specific NULL dereference.

2

What is required to trigger the issue?

The affected path must attempt SEV TIO setup for a device without PCI context. Before the fix, subsequent PCI root-port and device-ID lookups dereference the NULL bus pointer and can crash the kernel.

3

What happens after applying the fix?

The kernel returns -ENODEV before performing bus-dependent operations when pdev->bus is NULL. SEV TIO setup does not proceed for devices lacking PCI context, while behavior for devices with a non-NULL bus is unchanged.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203