{"id":"CVE-2026-80651","aliases":["CVE-2026-80651"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: ccp/sev-dev-tsm - bail out early when pdev->bus is NULL","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ccp/sev-dev-tsm - bail out early when pdev->bus is NULL\n\ndsm_create() initially checks pdev->bus when computing segment_id:\n\n\tu8 segment_id = pdev->bus ? pci_domain_nr(pdev->bus) : 0;\n\nBut the next two lines unconditionally dereference pdev->bus via\npcie_find_root_port() and especially pci_dev_id(pdev), which expands\nto PCI_DEVID(dev->bus->number, dev->devfn). If pdev->bus is in fact\nNULL, segment_id is initialised to 0 but the very next statement\ncrashes the kernel.\n\nsmatch flags this:\n\n  drivers/crypto/ccp/sev-dev-tsm.c:253 dsm_create() error: we\n    previously assumed 'pdev->bus' could be null (see line 251)\n\nMake the NULL handling consistent: if pdev->bus is NULL the device\nhas no PCI context to work with and SEV TIO setup cannot proceed,\nso return -ENODEV before any of the bus-dependent lookups. The\nremaining initialisation now runs only on the path where pdev->bus\nis known to be valid.\n\nNo change for callers where pdev->bus is non-NULL, which is the\nonly case where dsm_create() did meaningful work before this change.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ccp/sev-dev-tsm - bail out early when pdev->bus is NULL\n\ndsm_create() initially checks pdev->bus when computing segment_id:\n\n\tu8 segment_id = pdev->bus ? pci_domain_nr(pdev->bus) : 0;\n\nBut the next two lines unconditionally dereference pdev->bus via\npcie_find_root_port() and especially pci_dev_id(pdev), which expands\nto PCI_DEVID(dev->bus->number, dev->devfn). If pdev->bus is in fact\nNULL, segment_id is initialised to 0 but the very next statement\ncrashes the kernel.\n\nsmatch flags this:\n\n  drivers/crypto/ccp/sev-dev-tsm.c:253 dsm_create() error: we\n    previously assumed 'pdev->bus' could be null (see line 251)\n\nMake the NULL handling consistent: if pdev->bus is NULL the device\nhas no PCI context to work with and SEV TIO setup cannot proceed,\nso return -ENODEV before any of the bus-dependent lookups. The\nremaining initialisation now runs only on the path where pdev->bus\nis known to be valid.\n\nNo change for callers where pdev->bus is non-NULL, which is the\nonly case where dsm_create() did meaningful work before this change.","source":"cvelist"}],"published":"2026-08-28T06:48:59.460Z","modified":"2026-08-28T08:16:50.110Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4be423572da1f4c11f45168e3fafda870ddac9f8","fixed":"6bafd740095fb3d0e9a00540bc8f3484c38e6f85","status":"affected"},{"type":"git","introduced":"4be423572da1f4c11f45168e3fafda870ddac9f8","fixed":"930d9d36ea618a775985446a125aedeb401db522","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6bafd740095fb3d0e9a00540bc8f3484c38e6f85","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/930d9d36ea618a775985446a125aedeb401db522","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80651","url":"https://www.cve.org/CVERecord?id=CVE-2026-80651","licence":"CVE Terms of Use","modified":"2026-08-28T06:48:59.460Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80651","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80651","licence":"Public domain","modified":"2026-08-28T08:16:50.110Z"}],"updatedAt":"2026-11-25T22:59:35.600Z","epss":{"score":0.00159,"percentile":0.05274,"date":"2026-12-01T12:00:22.000Z"}}