CVE-2026-98971

Source
https://cve.org/CVERecord?id=CVE-2026-98971
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98971.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-98971
Downstream
Related
Published
2026-10-23T12:19:44Z
Modified
2026-11-06T17:27:18Z
Summary
gpio: exar: initialize the ID before registering its cleanup
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98971.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5300ebb695fa0672589ab191062392f686fca75d
Fixed
0250acba81654b2ee50bde324ad72b3f0c04d0bd
Fixed
88b9c4bbf83d940ab672956e5af921215905dcb4
Fixed
bf3d841ef12fcbec4458e2750956b738b043a226
Fixed
b78c114600ae3df90c083c72c290437b068577c8
Fixed
01318927a9055136c207399eeb36ce07becac179
Fixed
f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2
Fixed
4d69e74034b208588636ecc177e0dd43a7696af3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98971.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.224
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.191
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.160
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.113
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.57
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.11

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98971.json"