Security mailing lists by PureSourceCode

CVE-2026-139454

not scored yet

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

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. ]

Published
30 Nov 2026
Last modified
30 Nov 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= de516b40116e98c60ee475e92108453686098c85, < 35939aa04c41e2674ce1728c26390a48cc80eb4e; >= de516b40116e98c60ee475e92108453686098c85, < 75a9f9da262c73a2d22bccbe13671aa6d2affa0c; >= de516b40116e98c60ee475e92108453686098c85, < bcda00c78d075340fe30cb6c980507fac711e7d1 35939aa04c41e2674ce1728c26390a48cc80eb4e, 75a9f9da262c73a2d22bccbe13671aa6d2affa0c, bcda00c78d075340fe30cb6c980507fac711e7d1
CVE List Linux Linux = 6.0

References

History

  • 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 13:58 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.