{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1448c2d2ca5cc7f4ea6694e6bc809946de0a751c"
            },
            {
              "fixed": "c62b6e081119f2ab03cfcafde1f83c0f50e8e726"
            },
            {
              "fixed": "144113b0a70fa18033a747ee5db6803308f7688c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.2.0"
            },
            {
              "fixed": "7.2.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98397.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown\n\nIn gpio_secondary_fwnode_init(), acpi_bus_find_device_by_name() returns a\ndevice reference, but the local dev variable is declared with\n__free(put_device), dropping the reference at the end of each iteration.\nMeanwhile, devm_add_action_or_reset() saves the dev pointer for\ngpio_secondary_unset() without incrementing its reference count, which\ncould lead to a use-after-free during driver teardown if the device is\nreleased in the interim.\n\nAcquire an explicit device reference with get_device() when registering\nthe devres action, and drop it with put_device() inside\ngpio_secondary_unset().",
  "id": "CVE-2026-98397",
  "modified": "2026-10-15T02:31:08.073421707Z",
  "published": "2026-10-14T13:25:59.081Z",
  "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/144113b0a70fa18033a747ee5db6803308f7688c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c62b6e081119f2ab03cfcafde1f83c0f50e8e726"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98397.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98397"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown"
}