Bug 2587078 (CVE-2026-139454) - CVE-2026-139454 kernel: kernel: Denial of Service via use-after-free in CXL port handling
Summary: CVE-2026-139454 kernel: kernel: Denial of Service via use-after-free in CXL p...
Keywords:
Status: NEW
Alias: CVE-2026-139454
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 14:58 UTC by OSIDB Bzimport
Modified: 2026-12-01 10:05 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 14:58:01 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

devm_cxl_enumerate_ports() and add_port_attach_ep() look up or create a
dport under its port's device lock, drop the lock, then pass the dport
to cxl_add_ep(). add_ep() reads dport->port before taking the lock, and
cxl_gpf_port_setup() reads and writes the dport with no lock held.

A concurrent cxl_detach_ep() for another memdev below the same port can
free the dport in that window: it calls del_dports() 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 add_ep() 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. ]


Note You need to log in before you can comment on or make changes to this bug.