cxl/port: Clear cached dport pointers when a dport is removed
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to before 5b7d1d7287a82460e4863a7305ad05fbc33f5ae8 Affected8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to before 988997e24b4f4680bf5f9eefd4c8e805474db318 Affected8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 to before 019560d23450a320f4060ff235563a5277ea8033 Affected |
| Linux Linux | 6.18 Affectedbefore 6.18 Not Affected6.18.64 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.