Skip to content
Heist/ feed
Unrated

gpio: exar: initialize the ID before registering its cleanup

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: gpio: exar: initialize the ID before registering its cleanup devm_add_action_or_reset() invokes the cleanup action immediately when registering the action fails. gpio_exar_probe() currently stores the allocated ID in exar_gpio only after registering the action, so that failure makes exar_devm_ida_free() release ID 0. If the allocated ID is nonzero, this leaks that ID and can free ID 0 belonging to another device. Store the ID before registering the cleanup action so both the immediate failure path and normal device teardown release the correct allocation.

Announced Source revision 1
Original source ↗

CVE-2026-98971

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98971

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5300ebb695fa0672589ab191062392f686fca75d",
        "lessThan": "bf3d841ef12fcbec4458e2750956b738b043a226",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5300ebb695fa0672589ab191062392f686fca75d",
        "lessThan": "b78c114600ae3df90c083c72c290437b068577c8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5300ebb695fa0672589ab191062392f686fca75d",
        "lessThan": "01318927a9055136c207399eeb36ce07becac179",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5300ebb695fa0672589ab191062392f686fca75d",
        "lessThan": "f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5300ebb695fa0672589ab191062392f686fca75d",
        "lessThan": "4d69e74034b208588636ecc177e0dd43a7696af3",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/gpio/gpio-exar.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.11"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.11",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.113",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.57",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.11",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/gpio/gpio-exar.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98971

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#52826 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement