{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-98971",
  "modified": "2026-10-24T04:30:01Z",
  "upstream": [
    "CVE-2026-98971"
  ],
  "published": "2026-10-23T12:29:05Z",
  "summary": "gpio: exar: initialize the ID before registering its cleanup",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: exar: initialize the ID before registering its cleanup\n\ndevm_add_action_or_reset() invokes the cleanup action immediately when\nregistering the action fails.  gpio_exar_probe() currently stores the\nallocated ID in exar_gpio only after registering the action, so that\nfailure makes exar_devm_ida_free() release ID 0.  If the allocated ID is\nnonzero, this leaks that ID and can free ID 0 belonging to another device.\n\nStore the ID before registering the cleanup action so both the immediate\nfailure path and normal device teardown release the correct allocation.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": null,
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-98971"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/bf3d841ef12fcbec4458e2750956b738b043a226"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b78c114600ae3df90c083c72c290437b068577c8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/01318927a9055136c207399eeb36ce07becac179"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4d69e74034b208588636ecc177e0dd43a7696af3"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-23T12:29:05Z"
  }
}
