{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1145d1a0703f44687e599f8608c035cea95e6ae3"
            },
            {
              "fixed": "07de184d9bf160efeb183e219172c39b99678c16"
            },
            {
              "fixed": "0353b51965883cf70dad162908e07395f242000f"
            }
          ],
          "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.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143001.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250_exar: check priv-\u003egpio properly\n\npriv-\u003egpio is set by platform_device_register_full(), which returns\nerror-encoded pointers on failure, not NULL. Sashiko reported:\n\n\u003e Does __xr17v35x_register_gpio() return an ERR_PTR if\n\u003e platform_device_register_full() fails?\n\u003e\n\u003e If it does, we might be storing an error pointer directly into\n\u003e priv-\u003egpio in xr17v35x_register_gpio() without validating it with\n\u003e IS_ERR(). Because the error is ignored, the device probe\n\u003e successfully continues.\n\nBefore commit 1145d1a0703f (\"serial: 8250_exar: use\nplatform_device_register_full()\"), __xr17v35x_register_gpio()\nreturned NULL on any failure (platform_device_alloc(),\ndevice_add_software_node() or platform_device_add() failing were all\nturned into a NULL return). The plain truthy check in\nxr17v35x_unregister_gpio() matched that convention. That commit\nswitched registration to platform_device_register_full(), which\nreports failure as an ERR_PTR() instead of NULL, but the unregister\ncheck was never updated to match. As a result, a failed registration\nleft an error pointer in priv-\u003egpio, and unbind would tear it down as\nif it were a real platform_device, dereferencing the encoded error\nvalue in device_remove_software_node() and\nplatform_device_unregister().\n\nUse IS_ERR_OR_NULL() instead, so both the unset (non-EXAR vendor,\npriv-\u003egpio never assigned) and failed-registration (ERR_PTR) cases\nare skipped.",
  "id": "CVE-2026-143001",
  "modified": "2026-12-03T10:45:52.149414351Z",
  "published": "2026-12-03T09:17:33.925Z",
  "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/0353b51965883cf70dad162908e07395f242000f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/07de184d9bf160efeb183e219172c39b99678c16"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143001.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143001"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "serial: 8250_exar: check priv-\u003egpio properly"
}