cxl/port: Clear cached dport pointers when a dport is removed
- CVE-2026-138845
- GHSA-vxx8-j4rh-8782
- EUVD-2026-138548
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.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
Linux
Affected versions Fixed in 6.18 none stated before 6.18: not affected none stated from 6.18.64 up to 6.18.*: not affected none stated from 7.3.4 up to 7.3.*: not affected none stated from 7.4-rc1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.