{"api_version":"1","generated_at":"2026-11-30T19:34:00+00:00","cve":"CVE-2026-139455","urls":{"html":"https://cve.report/CVE-2026-139455","api":"https://cve.report/api/cve/CVE-2026-139455.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139455","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139455"},"summary":{"title":"cxl/core: Hold the dport host lock across dport lookup and use","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/core: Hold the dport host lock across dport lookup and use\n\nCallers of cxl_pci_find_port() and cxl_mem_find_port() can be handed a\n'struct cxl_dport' that is already freed, and all four dereference it\nwithout the lock that would prevent that.\n\nA dport is kzalloc()'d into a devres group on its host device, so it dies\nwhen that host unbinds. The host is &port->dev for a switch port and\nport->uport_dev for the root port.\n\nBoth helpers return the dport through an output parameter. The caller's\nport reference pins struct cxl_port, not the dport allocation, and the\nlookup itself is a bare xa_load() under no lock.\n\nAdd cxl_port_dport_host() to name the device that pins a dport, and\ncxl_pci_find_dport() / cxl_mem_find_dport() to look one up with that\ndevice's lock held and asserted. Convert the four callers to use them and\nbail if the dport is gone. cxl_port_add_dport() already follows this rule.\n\ncxl_mem_probe() chose its endpoint devm host from dport->rch, which meant\ndereferencing the dport before taking any lock. Use cxl_port_dport_host():\nrch dports only ever land on the root port, so it selects the same device\nwithout needing the dport.\n\nWith every caller converted, the dport output parameter of\ncxl_pci_find_port() and cxl_mem_find_port() is unused. Drop it.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:16","updated_at":"2026-11-30 14:19:16"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/5224ef91eaf0f84cc323e7701d24a1e7748d106c","name":"https://git.kernel.org/stable/c/5224ef91eaf0f84cc323e7701d24a1e7748d106c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b72a03ebd9586d59992ecaa6ceed11ea96835734","name":"https://git.kernel.org/stable/c/b72a03ebd9586d59992ecaa6ceed11ea96835734","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139455","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139455","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 733b57f262b0e9f05ffeac102fe5bd729e263170 5224ef91eaf0f84cc323e7701d24a1e7748d106c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 733b57f262b0e9f05ffeac102fe5bd729e263170 b72a03ebd9586d59992ecaa6ceed11ea96835734 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.5","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/cxl/core/core.h","drivers/cxl/core/pci.c","drivers/cxl/core/port.c","drivers/cxl/core/ras_rch.c","drivers/cxl/cxl.h","drivers/cxl/mem.c","drivers/cxl/pci.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"5224ef91eaf0f84cc323e7701d24a1e7748d106c","status":"affected","version":"733b57f262b0e9f05ffeac102fe5bd729e263170","versionType":"git"},{"lessThan":"b72a03ebd9586d59992ecaa6ceed11ea96835734","status":"affected","version":"733b57f262b0e9f05ffeac102fe5bd729e263170","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/cxl/core/core.h","drivers/cxl/core/pci.c","drivers/cxl/core/port.c","drivers/cxl/core/ras_rch.c","drivers/cxl/cxl.h","drivers/cxl/mem.c","drivers/cxl/pci.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.5"},{"lessThan":"6.5","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/core: Hold the dport host lock across dport lookup and use\n\nCallers of cxl_pci_find_port() and cxl_mem_find_port() can be handed a\n'struct cxl_dport' that is already freed, and all four dereference it\nwithout the lock that would prevent that.\n\nA dport is kzalloc()'d into a devres group on its host device, so it dies\nwhen that host unbinds. The host is &port->dev for a switch port and\nport->uport_dev for the root port.\n\nBoth helpers return the dport through an output parameter. The caller's\nport reference pins struct cxl_port, not the dport allocation, and the\nlookup itself is a bare xa_load() under no lock.\n\nAdd cxl_port_dport_host() to name the device that pins a dport, and\ncxl_pci_find_dport() / cxl_mem_find_dport() to look one up with that\ndevice's lock held and asserted. Convert the four callers to use them and\nbail if the dport is gone. cxl_port_add_dport() already follows this rule.\n\ncxl_mem_probe() chose its endpoint devm host from dport->rch, which meant\ndereferencing the dport before taking any lock. Use cxl_port_dport_host():\nrch dports only ever land on the root port, so it selects the same device\nwithout needing the dport.\n\nWith every caller converted, the dport output parameter of\ncxl_pci_find_port() and cxl_mem_find_port() is unused. Drop it."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:54.855Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/5224ef91eaf0f84cc323e7701d24a1e7748d106c"},{"url":"https://git.kernel.org/stable/c/b72a03ebd9586d59992ecaa6ceed11ea96835734"}],"title":"cxl/core: Hold the dport host lock across dport lookup and use","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139455","datePublished":"2026-11-30T13:34:54.855Z","dateReserved":"2026-11-30T13:22:15.934Z","dateUpdated":"2026-11-30T13:34:54.855Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:16","lastModifiedDate":"2026-11-30 14:19:16","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139455","Ordinal":"1","Title":"cxl/core: Hold the dport host lock across dport lookup and use","CVE":"CVE-2026-139455","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139455","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/core: Hold the dport host lock across dport lookup and use\n\nCallers of cxl_pci_find_port() and cxl_mem_find_port() can be handed a\n'struct cxl_dport' that is already freed, and all four dereference it\nwithout the lock that would prevent that.\n\nA dport is kzalloc()'d into a devres group on its host device, so it dies\nwhen that host unbinds. The host is &port->dev for a switch port and\nport->uport_dev for the root port.\n\nBoth helpers return the dport through an output parameter. The caller's\nport reference pins struct cxl_port, not the dport allocation, and the\nlookup itself is a bare xa_load() under no lock.\n\nAdd cxl_port_dport_host() to name the device that pins a dport, and\ncxl_pci_find_dport() / cxl_mem_find_dport() to look one up with that\ndevice's lock held and asserted. Convert the four callers to use them and\nbail if the dport is gone. cxl_port_add_dport() already follows this rule.\n\ncxl_mem_probe() chose its endpoint devm host from dport->rch, which meant\ndereferencing the dport before taking any lock. Use cxl_port_dport_host():\nrch dports only ever land on the root port, so it selects the same device\nwithout needing the dport.\n\nWith every caller converted, the dport output parameter of\ncxl_pci_find_port() and cxl_mem_find_port() is unused. Drop it.","Type":"Description","Title":"cxl/core: Hold the dport host lock across dport lookup and use"}]}}}