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.
Published: 2026-08-28
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A null pointer dereference occurs in the Linux kernel's crypto subsystem within the ccp/sev-dev-tsm driver. The dsm_create function assumes that pdev->bus is non‑NULL, but when it is NULL the function proceeds to dereference it unconditionally using pcie_find_root_port and pci_dev_id. This leads to a kernel crash, causing a denial of service. The flaw does not directly disclose data or alter system integrity; it mainly disrupts availability by forcing a kernel panic during cryptographic device initialization. Based on the description, it is a classic Null Pointer Dereference weakness (CWE-476).

Affected Systems

Any Linux kernel installation that has not applied the bug fix will be vulnerable. The vulnerability is present in all kernel versions where the ccp/sev-dev-tsm driver contains the flawed dsm_create implementation. Because the fix was authored in the kernel source, distributions that have incorporated the patch into their kernel releases are no longer impacted; all other distributions remain affected until they update to a kernel version that contains the change.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is unavailable, so the overall risk assessment relies on the potential impact and the known exploitability. The flaw is a local kernel vulnerability—an attacker would need to execute code that triggers dsm_create, such as running privileged build tools or modules that load the SEV device. There is no published public exploit, and the flaw is not listed in the CISA KEV catalog. Nevertheless, a local attacker could force a denial of service by inducing a kernel panic, thereby impacting system availability. The risk is elevated for environments where kernel modules can be loaded from untrusted sources or where the SEV device is exposed to privileged users without proper isolation.

Generated by OpenCVE AI on August 28, 2026 at 11:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel patch that contains the fix for the ccp/sev-dev-tsm null pointer dereference
  • Update the running kernel to a version not susceptible to the bug
  • Reboot the system after updating to ensure the new kernel is active

Generated by OpenCVE AI on August 28, 2026 at 11:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Fri, 28 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
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.
Title crypto: ccp/sev-dev-tsm - bail out early when pdev->bus is NULL
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-28T06:48:59.460Z

Reserved: 2026-08-26T14:34:25.779Z

Link: CVE-2026-80651

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-28T08:16:50.110

Modified: 2026-08-28T08:16:50.110

Link: CVE-2026-80651

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T12:00:10Z

Weaknesses