{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "de516b40116e98c60ee475e92108453686098c85"
            },
            {
              "fixed": "35939aa04c41e2674ce1728c26390a48cc80eb4e"
            },
            {
              "fixed": "75a9f9da262c73a2d22bccbe13671aa6d2affa0c"
            },
            {
              "fixed": "bcda00c78d075340fe30cb6c980507fac711e7d1"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.0.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139454.json"
  },
  "details": "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-\u003eport 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-\u003edports is still live, since\nremoval erases it from the xarray before freeing it.\n\n[ dj: Added kdoc update from Alison. ]",
  "id": "CVE-2026-139454",
  "modified": "2026-11-30T14:45:27.655969740Z",
  "published": "2026-11-30T13:34:54.290Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/35939aa04c41e2674ce1728c26390a48cc80eb4e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/75a9f9da262c73a2d22bccbe13671aa6d2affa0c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bcda00c78d075340fe30cb6c980507fac711e7d1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139454.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139454"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "cxl/port: Attach endpoints to a dport under the lock that pins it"
}