CVE-2026-139454: cxl/port: Attach endpoints to a dport under the lock that pins it

Published Nov 30, 2026
·
Updated

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

cxl/port: Attach endpoints to a dport under the lock that pins it

devmcxlenumerateports() and addportattachep() look up or create a dport under its port's device lock, drop the lock, then pass the dport to cxladdep(). addep() reads dport->port before taking the lock, and cxlgpfportsetup() reads and writes the dport with no lock held.

A concurrent cxldetachep() for another memdev below the same port can free the dport in that window: it calls deldports() under the port lock when the last endpoint leaves. The enumerating memdev then dereferences freed memory.

Attach the endpoint and set up GPF while the port lock from the lookup is still held. Make addep() assert that lock instead of taking it. Under the lock, a dport found in port->dports is still live, since removal erases it from the xarray before freeing it.

[ dj: Added kdoc update from Alison. ]

Affected Software

6 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.0.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux*
debian/linux<7.3.6-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1

Event History

Nov 30, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
Description
Data Sourced
via OSV·01:34 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

A memdev must be enumerating and looking up or creating a dport while another memdev below the same port concurrently detaches its endpoint. The detach must remove the last endpoint, causing the dport to be removed and freed during the enumeration window.

2

What should be checked to determine whether a system is exposed to the race?

Check whether CXL ports can have concurrent memdev enumeration and endpoint-detach activity for multiple memdevs below the same port. The vulnerable path dereferences a dport after the port device lock was dropped, allowing a concurrent detach to free that dport.

3

What does the fix change?

The fix keeps the port lock held while attaching the endpoint and setting up GPF. It also requires add_ep() to operate with that lock already held, ensuring a dport still present in the port's dport collection remains live.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203