{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0481a041e9569dfc2448ba4c6cb30335fcb8430f"
            },
            {
              "fixed": "634489424217836868b6c7c379c8b1470f6f9c61"
            },
            {
              "fixed": "39eaa90b6bd1dbe147c90c345796bc042080d80e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.3.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-139639.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250_mxpcie: only unregister the ports that were registered\n\nWhen serial8250_register_8250_port() fails the loop stops and the probe\nkeeps the ports registered so far, like pciserial_init_ports() in\n8250_pci.c this driver was split from.  What the split lost is that\nfunction's priv-\u003enr: mxpcie8250_remove() walks all num_ports entries,\nbut the ones the loop never reached keep the zero devm_kzalloc() left\nthere, and the one that failed keeps a negative error code.\n\nserial8250_unregister_port() checks neither, so removal unregisters\nline 0 - a port this driver does not own - and indexes\nserial8250_ports[] with a negative line number.\n\nRecord how many ports were registered and unregister only those.",
  "id": "CVE-2026-139639",
  "modified": "2026-12-01T20:45:49.569410913Z",
  "published": "2026-11-30T13:36:36.456Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/39eaa90b6bd1dbe147c90c345796bc042080d80e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/634489424217836868b6c7c379c8b1470f6f9c61"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139639.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139639"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "serial: 8250_mxpcie: only unregister the ports that were registered"
}