# CVE-2026-138845: cxl/port: Clear cached dport pointers when a dport is removed

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:31.162Z
- Modified: 2026-11-30T14:17:40.123Z
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)

## References

- <https://git.kernel.org/stable/c/5b7d1d7287a82460e4863a7305ad05fbc33f5ae8>
- <https://git.kernel.org/stable/c/988997e24b4f4680bf5f9eefd4c8e805474db318>
- <https://git.kernel.org/stable/c/019560d23450a320f4060ff235563a5277ea8033>

## Sources

- CVE List: [CVE-2026-138845](https://www.cve.org/CVERecord?id=CVE-2026-138845), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138845](https://nvd.nist.gov/vuln/detail/CVE-2026-138845), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138845 · Whole record: https://cve.day/CVE-2026-138845.json · Rebuilt by cve.day 2026-11-30T14:32:56.549Z
