{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "d21a1509c62386200c09ed102983b8d79a1b0485"
            },
            {
              "fixed": "0f040e2f8a186e008517c7f952de71422b78b607"
            },
            {
              "fixed": "27ca9a81485f179aac83d25fcc3234bc927fa17a"
            }
          ],
          "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-139640.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250_mxpcie: set the driver data before registering ports\n\nmxpcie8250_rs485_config() looks the board up with dev_get_drvdata() on\nthe PCI device, but pci_set_drvdata() only runs after the registration\nloop.  Where mxpcie8250_setup_port() presets rs485.flags to\nSER_RS485_ENABLED and the flag survives uart_get_rs485_mode() - the\ndevice has no firmware node, or its node sets\nlinux,rs485-enabled-at-boot-time - uart_configure_port() calls\n-\u003ers485_config() from inside serial8250_register_8250_port(), and the\ncallback dereferences a NULL board pointer.\n\nPublish the driver data before the first port is registered.",
  "id": "CVE-2026-139640",
  "modified": "2026-12-01T20:46:08.229248082Z",
  "published": "2026-11-30T13:36:37.004Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0f040e2f8a186e008517c7f952de71422b78b607"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/27ca9a81485f179aac83d25fcc3234bc927fa17a"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139640.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139640"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "serial: 8250_mxpcie: set the driver data before registering ports"
}