CVE-2026-80651

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

Published Aug 28, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 of 5.5 indicates a moderate severity, while the EPSS score of less than 1% shows a very low likelihood of exploitation in the wild. The flaw remains a local kernel vulnerability – an attacker would need to trigger dsm_create, for example by loading a malicious module or executing privileged code that reaches the SEV device. No public exploit exists and the vulnerability is not listed in the CISA KEV catalog. While the attack would still only deny service by causing a kernel crash, the combination of moderate severity and very low exploitation probability suggests a lower overall risk, although it remains significant for systems that run untrusted kernel modules or expose SEV functionality to privileged users.

Remediation

No solution or workaround provided in the CVE record.

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 September 1, 2026 at 14:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-476
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 28, 2026, 6:48 AM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Aug 28, 2026, 8:16 AM
Modified
Aug 28, 2026, 8:16 AM
Severity
Moderate
Public date
Aug 28, 2026, 12:00 AM