Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
PendingCVE-2026-138845

cxl/port: Clear cached dport pointers when a dport is removed

Published 30/11/2026 · Updated 30/11/2026 · Linux

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.

Affected products and versions

Linux Linux8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 – < 5b7d1d7287a82460e4863a7305ad05fbc33f5ae8 · 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 – < 988997e24b4f4680bf5f9eefd4c8e805474db318 · 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 – < 019560d23450a320f4060ff235563a5277ea8033Fixed in: 5b7d1d7287a82460e4863a7305ad05fbc33f5ae8 · 988997e24b4f4680bf5f9eefd4c8e805474db318 · 019560d23450a320f4060ff235563a5277ea8033
Linux Linux6.18Fixed in: 6.18.64 · 7.3.4 · 7.4-rc1

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.