CVE-2026-138845

Source
https://cve.org/CVERecord?id=CVE-2026-138845
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138845.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138845
Downstream
Published
2026-11-30T13:25:31Z
Modified
2026-11-30T15:01:02Z
Summary
cxl/port: Clear cached dport pointers when a dport is removed
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138845.json"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"