CVE-2026-139455

Not scored yetLast modified Nov 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

cxl/core: Hold the dport host lock across dport lookup and use

Callers of cxl_pci_find_port() and cxl_mem_find_port() can be handed a 'struct cxl_dport' that is already freed, and all four dereference it without the lock that would prevent that.

A dport is kzalloc()'d into a devres group on its host device, so it dies when that host unbinds. The host is &port->dev for a switch port and port->uport_dev for the root port.

Both helpers return the dport through an output parameter. The caller's port reference pins struct cxl_port, not the dport allocation, and the lookup itself is a bare xa_load() under no lock.

Add cxl_port_dport_host() to name the device that pins a dport, and cxl_pci_find_dport() / cxl_mem_find_dport() to look one up with that device's lock held and asserted. Convert the four callers to use them and bail if the dport is gone. cxl_port_add_dport() already follows this rule.

cxl_mem_probe() chose its endpoint devm host from dport->rch, which meant dereferencing the dport before taking any lock. Use cxl_port_dport_host(): rch dports only ever land on the root port, so it selects the same device without needing the dport.

With every caller converted, the dport output parameter of cxl_pci_find_port() and cxl_mem_find_port() is unused. Drop it.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139456In the Linux kernel, the following vulnerability has been resolved: bpf: Fix arg_track_xfer() for atomic stack spills and fills Track spilCVE-2026-139457In the Linux kernel, the following vulnerability has been resolved: vfio/pci: Drain eventfd RCU callbacks on module exit vfio_pci_eventfd_CVE-2026-139458In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Safely terminate ACS redirect lists seq_buf marks an overfCVE-2026-139459In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Wait for RCU readers before freeing state pci_p2pmem_find_CVE-2026-139464.3Inappropriate implementation in ScriptInjections in Google Chrome on iOS prior to 150.0.7871.47 allowed a remote attacker to leak cross-origCVE-2026-139460In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Do not tear down the allocate attribute on registration faiCVE-2026-139461In the Linux kernel, the following vulnerability has been resolved: dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPINGCVE-2026-139462In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: reg: protect regdb pointer with RCU reg_query_regdb_wmCVE-2026-139463In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix mbssid/rnr allocation in beacon data These structsCVE-2026-139464In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: limit injected HT/VHT MCSes With radiotap injection thCVE-2026-139465In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: kill wake_txqs_tasklet on unregistration We never killCVE-2026-139466In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: mesh: use hlist_add_head_rcu() The mesh paths walk lis
CVE-2026-139455: Unscored | Vulnix