{"id":"CVE-2026-138845","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:40.123","lastModified":"2026-11-30T14:17:40.123","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/cxl/core/port.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","lessThan":"5b7d1d7287a82460e4863a7305ad05fbc33f5ae8","versionType":"git","status":"affected"},{"version":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","lessThan":"988997e24b4f4680bf5f9eefd4c8e805474db318","versionType":"git","status":"affected"},{"version":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","lessThan":"019560d23450a320f4060ff235563a5277ea8033","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/cxl/core/port.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.18","status":"affected"},{"version":"0","lessThan":"6.18","versionType":"semver","status":"unaffected"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/019560d23450a320f4060ff235563a5277ea8033","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5b7d1d7287a82460e4863a7305ad05fbc33f5ae8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/988997e24b4f4680bf5f9eefd4c8e805474db318","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}