{"id":"CVE-2026-138845","aliases":["CVE-2026-138845"],"related":[],"kind":"vulnerability","state":"published","title":"cxl/port: Clear cached dport pointers when a dport is removed","summary":"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->target[], 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->target[], 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.","source":"cvelist"}],"published":"2026-11-30T13:25:31.162Z","modified":"2026-11-30T14:17:40.123Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","fixed":"5b7d1d7287a82460e4863a7305ad05fbc33f5ae8","status":"affected"},{"type":"git","introduced":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","fixed":"988997e24b4f4680bf5f9eefd4c8e805474db318","status":"affected"},{"type":"git","introduced":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","fixed":"019560d23450a320f4060ff235563a5277ea8033","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5b7d1d7287a82460e4863a7305ad05fbc33f5ae8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/988997e24b4f4680bf5f9eefd4c8e805474db318","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/019560d23450a320f4060ff235563a5277ea8033","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138845","url":"https://www.cve.org/CVERecord?id=CVE-2026-138845","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:31.162Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138845","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138845","licence":"Public domain","modified":"2026-11-30T14:17:40.123Z"}],"updatedAt":"2026-11-30T14:32:56.549Z","epss":{"score":0.00207,"percentile":0.11437,"date":"2026-12-01T12:00:22.000Z"}}