{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138845","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.898Z","datePublished":"2026-11-30T13:25:31.162Z","dateUpdated":"2026-11-30T13:25:31.162Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:25:31.162Z"},"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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cxl/core/port.c"],"versions":[{"version":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","lessThan":"5b7d1d7287a82460e4863a7305ad05fbc33f5ae8","status":"affected","versionType":"git"},{"version":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","lessThan":"988997e24b4f4680bf5f9eefd4c8e805474db318","status":"affected","versionType":"git"},{"version":"8330671c57c7056ef5e1e8dccfcdda7d5fe6d0b0","lessThan":"019560d23450a320f4060ff235563a5277ea8033","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cxl/core/port.c"],"versions":[{"version":"6.18","status":"affected"},{"version":"0","lessThan":"6.18","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/5b7d1d7287a82460e4863a7305ad05fbc33f5ae8"},{"url":"https://git.kernel.org/stable/c/988997e24b4f4680bf5f9eefd4c8e805474db318"},{"url":"https://git.kernel.org/stable/c/019560d23450a320f4060ff235563a5277ea8033"}],"title":"cxl/port: Clear cached dport pointers when a dport is removed","x_generator":{"engine":"bippy-1.2.0"}}}}