CVE-2026-139454
publishedcxl/port: Attach endpoints to a dport under the lock that pins it
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxde516b40116e98c60ee475e92108453686098c85 to < 35939aa04c41e2674ce1728c26390a48cc80eb4e · de516b40116e98c60ee475e92108453686098c85 to < 75a9f9da262c73a2d22bccbe13671aa6d2affa0c · de516b40116e98c60ee475e92108453686098c85 to < bcda00c78d075340fe30cb6c980507fac711e7d1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.18.66 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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. ]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | de516b40116e98c60ee475e92108453686098c85 to < 35939aa04c41e2674ce1728c26390a48cc80eb4e (affected · git)de516b40116e98c60ee475e92108453686098c85 to < 75a9f9da262c73a2d22bccbe13671aa6d2affa0c (affected · git)de516b40116e98c60ee475e92108453686098c85 to < bcda00c78d075340fe30cb6c980507fac711e7d1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.0 (affected)0 to < 6.0 (unaffected · semver)6.18.66 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
cxl/port: Attach endpoints to a dport under the lock that pins it
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2cf68573876cf1e8fee7d64204e3a4875696274bf5407c26db96e78987bda53d
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record