CVE-2026-98971

gpio: exar: initialize the ID before registering its cleanup

State
Published
Severity
Not scored
Published
Oct 23, 2026
Updated
Oct 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 5300ebb695fa0672589ab191062392f686fca75d to before 0250acba81654b2ee50bde324ad72b3f0c04d0bdAffected
  • 5300ebb695fa0672589ab191062392f686fca75d to before 88b9c4bbf83d940ab672956e5af921215905dcb4Affected
  • 5300ebb695fa0672589ab191062392f686fca75d to before bf3d841ef12fcbec4458e2750956b738b043a226Affected
  • 5300ebb695fa0672589ab191062392f686fca75d to before b78c114600ae3df90c083c72c290437b068577c8Affected
  • 5300ebb695fa0672589ab191062392f686fca75d to before 01318927a9055136c207399eeb36ce07becac179Affected
  • 5300ebb695fa0672589ab191062392f686fca75d to before f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2Affected
  • 5300ebb695fa0672589ab191062392f686fca75d to before 4d69e74034b208588636ecc177e0dd43a7696af3Affected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.15.224 through 5.15.*Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.113 through 6.12.*Not affected
  • 6.18.57 through 6.18.*Not affected
  • 7.2.11 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.