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.

Affected products

VendorProductVersions
LinuxLinux5300ebb695fa0672589ab191062392f686fca75d to <bf3d841ef12fcbec4458e2750956b738b043a226 [affected]; 5300ebb695fa0672589ab191062392f686fca75d to <b78c114600ae3df90c083c72c290437b068577c8 [affected]; 5300ebb695fa0672589ab191062392f686fca75d to <01318927a9055136c207399eeb36ce07becac179 [affected]; 5300ebb695fa0672589ab191062392f686fca75d to <f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2 [affected]; 5300ebb695fa0672589ab191062392f686fca75d to <4d69e74034b208588636ecc177e0dd43a7696af3 [affected]
LinuxLinux5.11 [affected]; 0 to <5.11 [unaffected]; 6.6.160 to <=6.6.* [unaffected]; 6.12.113 to <=6.12.* [unaffected]; 6.18.57 to <=6.18.* [unaffected]; 7.2.11 to <=7.2.* [unaffected]; 7.3 to <=* [unaffected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 24 Oct 2026 07:01 UTC.