CVE-2026-138845
publishedcxl/port: Clear cached dport pointers when a dport is removed
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to < 5b7d1d7287a82460e4863a7305ad05fbc33f5ae8 · 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to < 988997e24b4f4680bf5f9eefd4c8e805474db318 · 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to < 019560d23450a320f4060ff235563a5277ea8033 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 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: Clear cached dport pointers when a dport is removed Switch decoders cache dport pointers in cxlsd->target[], and nothing clears them when a dport is freed. Readers then dereference freed memory. KASAN caught it under a cxl_test load/unload loop with concurrent sysfs reads (abbreviated). Clear the matching slots from cxl_dport_remove(), walking the port's decoders the way cxl_port_update_decoder_targets() does on the add side. Scan all nr_targets slots, the target[] allocation size, and clear every hit.
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 | 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to < 5b7d1d7287a82460e4863a7305ad05fbc33f5ae8 (affected · git)8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to < 988997e24b4f4680bf5f9eefd4c8e805474db318 (affected · git)8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to < 019560d23450a320f4060ff235563a5277ea8033 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 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: Clear cached dport pointers when a dport is removed
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e1286b9f102efab218114d52ef2fe33a3d8dc9bd51e0a4dbf612731eabe38450
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record