{"api_version":"1","generated_at":"2026-11-30T19:34:01+00:00","cve":"CVE-2026-139454","urls":{"html":"https://cve.report/CVE-2026-139454","api":"https://cve.report/api/cve/CVE-2026-139454.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139454","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139454"},"summary":{"title":"cxl/port: Attach endpoints to a dport under the lock that pins it","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/port: Attach endpoints to a dport under the lock that pins it\n\ndevm_cxl_enumerate_ports() and add_port_attach_ep() look up or create a\ndport under its port's device lock, drop the lock, then pass the dport\nto cxl_add_ep(). add_ep() reads dport->port before taking the lock, and\ncxl_gpf_port_setup() reads and writes the dport with no lock held.\n\nA concurrent cxl_detach_ep() for another memdev below the same port can\nfree the dport in that window: it calls del_dports() under the port lock\nwhen the last endpoint leaves. The enumerating memdev then dereferences\nfreed memory.\n\nAttach the endpoint and set up GPF while the port lock from the lookup\nis still held. Make add_ep() assert that lock instead of taking it.\nUnder the lock, a dport found in port->dports is still live, since\nremoval erases it from the xarray before freeing it.\n\n[ dj: Added kdoc update from Alison. ]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:16","updated_at":"2026-11-30 14:19:16"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/75a9f9da262c73a2d22bccbe13671aa6d2affa0c","name":"https://git.kernel.org/stable/c/75a9f9da262c73a2d22bccbe13671aa6d2affa0c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bcda00c78d075340fe30cb6c980507fac711e7d1","name":"https://git.kernel.org/stable/c/bcda00c78d075340fe30cb6c980507fac711e7d1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/35939aa04c41e2674ce1728c26390a48cc80eb4e","name":"https://git.kernel.org/stable/c/35939aa04c41e2674ce1728c26390a48cc80eb4e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139454","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139454","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected de516b40116e98c60ee475e92108453686098c85 35939aa04c41e2674ce1728c26390a48cc80eb4e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected de516b40116e98c60ee475e92108453686098c85 75a9f9da262c73a2d22bccbe13671aa6d2affa0c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected de516b40116e98c60ee475e92108453686098c85 bcda00c78d075340fe30cb6c980507fac711e7d1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.0 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/cxl/core/port.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"35939aa04c41e2674ce1728c26390a48cc80eb4e","status":"affected","version":"de516b40116e98c60ee475e92108453686098c85","versionType":"git"},{"lessThan":"75a9f9da262c73a2d22bccbe13671aa6d2affa0c","status":"affected","version":"de516b40116e98c60ee475e92108453686098c85","versionType":"git"},{"lessThan":"bcda00c78d075340fe30cb6c980507fac711e7d1","status":"affected","version":"de516b40116e98c60ee475e92108453686098c85","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/cxl/core/port.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.0"},{"lessThan":"6.0","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"6.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/port: Attach endpoints to a dport under the lock that pins it\n\ndevm_cxl_enumerate_ports() and add_port_attach_ep() look up or create a\ndport under its port's device lock, drop the lock, then pass the dport\nto cxl_add_ep(). add_ep() reads dport->port before taking the lock, and\ncxl_gpf_port_setup() reads and writes the dport with no lock held.\n\nA concurrent cxl_detach_ep() for another memdev below the same port can\nfree the dport in that window: it calls del_dports() under the port lock\nwhen the last endpoint leaves. The enumerating memdev then dereferences\nfreed memory.\n\nAttach the endpoint and set up GPF while the port lock from the lookup\nis still held. Make add_ep() assert that lock instead of taking it.\nUnder the lock, a dport found in port->dports is still live, since\nremoval erases it from the xarray before freeing it.\n\n[ dj: Added kdoc update from Alison. ]"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:54.290Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/35939aa04c41e2674ce1728c26390a48cc80eb4e"},{"url":"https://git.kernel.org/stable/c/75a9f9da262c73a2d22bccbe13671aa6d2affa0c"},{"url":"https://git.kernel.org/stable/c/bcda00c78d075340fe30cb6c980507fac711e7d1"}],"title":"cxl/port: Attach endpoints to a dport under the lock that pins it","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139454","datePublished":"2026-11-30T13:34:54.290Z","dateReserved":"2026-11-30T13:22:15.934Z","dateUpdated":"2026-11-30T13:34:54.290Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:16","lastModifiedDate":"2026-11-30 14:19:16","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139454","Ordinal":"1","Title":"cxl/port: Attach endpoints to a dport under the lock that pins i","CVE":"CVE-2026-139454","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139454","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/port: Attach endpoints to a dport under the lock that pins it\n\ndevm_cxl_enumerate_ports() and add_port_attach_ep() look up or create a\ndport under its port's device lock, drop the lock, then pass the dport\nto cxl_add_ep(). add_ep() reads dport->port before taking the lock, and\ncxl_gpf_port_setup() reads and writes the dport with no lock held.\n\nA concurrent cxl_detach_ep() for another memdev below the same port can\nfree the dport in that window: it calls del_dports() under the port lock\nwhen the last endpoint leaves. The enumerating memdev then dereferences\nfreed memory.\n\nAttach the endpoint and set up GPF while the port lock from the lookup\nis still held. Make add_ep() assert that lock instead of taking it.\nUnder the lock, a dport found in port->dports is still live, since\nremoval erases it from the xarray before freeing it.\n\n[ dj: Added kdoc update from Alison. ]","Type":"Description","Title":"cxl/port: Attach endpoints to a dport under the lock that pins i"}]}}}