CVE-2026-138845
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
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

Product or packageVersionsReported by
Linux Linuxfrom 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 before 5b7d1d7287a82460e4863a7305ad05fbc33f5ae8, from 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 before 988997e24b4f4680bf5f9eefd4c8e805474db318, from 8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0 before 019560d23450a320f4060ff235563a5277ea8033, 6.18
Not affected: before 6.18, from 6.18.64 up to 6.18.*, from 7.3.4 up to 7.3.*, from 7.4-rc1 up to *
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-138845 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-138845 changed 2026-11-30Public domain