{"id":"CVE-2026-138845","summary":"cxl/port: Clear cached dport pointers when a dport is removed","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/port: Clear cached dport pointers when a dport is removed\n\nSwitch decoders cache dport pointers in cxlsd-\u003etarget[], and nothing\nclears them when a dport is freed. Readers then dereference freed memory.\n\nKASAN caught it under a cxl_test load/unload loop with concurrent sysfs\nreads (abbreviated).\n\nClear the matching slots from cxl_dport_remove(), walking the port's\ndecoders the way cxl_port_update_decoder_targets() does on the add side.\nScan all nr_targets slots, the target[] allocation size, and clear every\nhit.","modified":"2026-12-01T21:02:34.596264624Z","published":"2026-11-30T13:25:31.162Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138845.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/019560d23450a320f4060ff235563a5277ea8033"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5b7d1d7287a82460e4863a7305ad05fbc33f5ae8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/988997e24b4f4680bf5f9eefd4c8e805474db318"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138845.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138845"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0"},{"fixed":"5b7d1d7287a82460e4863a7305ad05fbc33f5ae8"},{"fixed":"988997e24b4f4680bf5f9eefd4c8e805474db318"},{"fixed":"019560d23450a320f4060ff235563a5277ea8033"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138845.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138845.json"}}],"schema_version":"1.9.2"}