CVE-2026-98971

published 23 Oct 2026 · updated 20 Nov 2026

gpio: exar: initialize the ID before registering its cleanup

3.0LowCVSS 3.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2, Kernel 01318927a9055136c207399eeb36ce07becac179, Kernel 0250acba81654b2ee50bde324ad72b3f0c04d0bd and 10 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=5300ebb695fa0672589ab191062392f686fca75d <f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2, >=5300ebb695fa0672589ab191062392f686fca75d <01318927a9055136c207399eeb36ce07becac179, >=5300ebb695fa0672589ab191062392f686fca75d <0250acba81654b2ee50bde324ad72b3f0c04d0bd, >=5300ebb695fa0672589ab191062392f686fca75d <4d69e74034b208588636ecc177e0dd43a7696af3, >=5300ebb695fa0672589ab191062392f686fca75d <88b9c4bbf83d940ab672956e5af921215905dcb4, >=5300ebb695fa0672589ab191062392f686fca75d <b78c114600ae3df90c083c72c290437b068577c8, >=5300ebb695fa0672589ab191062392f686fca75d <bf3d841ef12fcbec4458e2750956b738b043a226, =5.11f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2, 01318927a9055136c207399eeb36ce07becac179, 0250acba81654b2ee50bde324ad72b3f0c04d0bd, 4d69e74034b208588636ecc177e0dd43a7696af3, 88b9c4bbf83d940ab672956e5af921215905dcb4, b78c114600ae3df90c083c72c290437b068577c8, bf3d841ef12fcbec4458e2750956b738b043a226
linux-kernel: Kernel>=5.16.0 <6.1.191, >=6.13.0 <6.18.57, >=6.19.0 <7.2.11, >=6.2.0 <6.6.160, >=6.7.0 <6.12.113, >=5.11.0 <5.15.2246.1.191, 6.18.57, 7.2.11, 6.6.160, 6.12.113, 5.15.224

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-98971 severity on Zeptric[![CVE-2026-98971](https://zeptric.io/badge/cve/CVE-2026-98971.svg)](https://zeptric.io/cve/CVE-2026-98971)