CVE-2026-98971

gpio: exar: initialize the ID before registering its cleanup

Description

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.

Key facts

Published
23 Oct 2026
Last changed
30 Oct 2026
Assigned by
Linux
EPSS
0.206% likely to be exploited in the next 30 days, higher than 10.743% of CVEs (scores for 17 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 5300ebb695fa0672589ab191062392f686fca75d up to but excluding 0250acba81654b2ee50bde324ad72b3f0c04d0bd (affected)
  • 5300ebb695fa0672589ab191062392f686fca75d up to but excluding 88b9c4bbf83d940ab672956e5af921215905dcb4 (affected)
  • 5300ebb695fa0672589ab191062392f686fca75d up to but excluding bf3d841ef12fcbec4458e2750956b738b043a226 (affected)
  • 5300ebb695fa0672589ab191062392f686fca75d up to but excluding b78c114600ae3df90c083c72c290437b068577c8 (affected)
  • 5300ebb695fa0672589ab191062392f686fca75d up to but excluding 01318927a9055136c207399eeb36ce07becac179 (affected)
  • 5300ebb695fa0672589ab191062392f686fca75d up to but excluding f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2 (affected)
  • 5300ebb695fa0672589ab191062392f686fca75d up to but excluding 4d69e74034b208588636ecc177e0dd43a7696af3 (affected)
LinuxLinux
  • Default status: affected
  • 5.11 (affected)
  • 0 up to but excluding 5.11 (unaffected)
  • 5.15.224 up to and including 5.15.* (unaffected)
  • 6.1.191 up to and including 6.1.* (unaffected)
  • 6.6.160 up to and including 6.6.* (unaffected)
  • 6.12.113 up to and including 6.12.* (unaffected)
  • 6.18.57 up to and including 6.18.* (unaffected)
  • 7.2.11 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 23 Oct 2026 Published

References