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: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service (kernel crash)
Action: Patch
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 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.

Generated by OpenCVE AI on September 1, 2026 at 14:54 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 September 1, 2026 at 14:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 01 Sep 2026 12:15:00 +0000

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


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

Severity : Moderate

Publid Date: 2026-08-28T00:00:00Z

Links: CVE-2026-80651 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T15:00:11Z

Weaknesses