# CVE-2026-98971: gpio: exar: initialize the ID before registering its cleanup

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-10-23T12:19:44.536Z
- **Modified:** 2026-10-30T13:21:33.613Z

## Who should check

- Anyone running Linux \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 0250acba81654b2ee50bde324ad72b3f0c04d0bd; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 88b9c4bbf83d940ab672956e5af921215905dcb4; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< bf3d841ef12fcbec4458e2750956b738b043a226; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< b78c114600ae3df90c083c72c290437b068577c8; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 01318927a9055136c207399eeb36ce07becac179; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 4d69e74034b208588636ecc177e0dd43a7696af3
- Anyone running Linux 5.11

## 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 and fixed versions

- Linux: \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 0250acba81654b2ee50bde324ad72b3f0c04d0bd; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 88b9c4bbf83d940ab672956e5af921215905dcb4; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< bf3d841ef12fcbec4458e2750956b738b043a226; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< b78c114600ae3df90c083c72c290437b068577c8; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 01318927a9055136c207399eeb36ce07becac179; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 4d69e74034b208588636ecc177e0dd43a7696af3 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- Upgrade Linux to 4d69e74034b208588636ecc177e0dd43a7696af3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98971. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98971.md
Affected: Linux >= 5300ebb695fa0672589ab191062392f686fca75d, < 0250acba81654b2ee50bde324ad72b3f0c04d0bd; >= 5300ebb695fa0672589ab191062392f686fca75d, < 88b9c4bbf83d940ab672956e5af921215905dcb4; >= 5300ebb695fa0672589ab191062392f686fca75d, < bf3d841ef12fcbec4458e2750956b738b043a226; >= 5300ebb695fa0672589ab19…
Fixed in: Linux 0250acba81654b2ee50bde324ad72b3f0c04d0bd, Linux 88b9c4bbf83d940ab672956e5af921215905dcb4, Linux 01318927a9055136c207399eeb36ce07becac179, Linux 4d69e74034b208588636ecc177e0dd43a7696af3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98971 being exploited?

There is no confirmed exploitation: CVE-2026-98971 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98971?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98971?

Linux \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 0250acba81654b2ee50bde324ad72b3f0c04d0bd; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 88b9c4bbf83d940ab672956e5af921215905dcb4; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< bf3d841ef12fcbec4458e2750956b738b043a226; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< b78c114600ae3df90c083c72c290437b068577c8; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 01318927a9055136c207399eeb36ce07becac179; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2; \>= 5300ebb695fa0672589ab191062392f686fca75d, \< 4d69e74034b208588636ecc177e0dd43a7696af3; Linux 5.11.

### Is there a fix for CVE-2026-98971?

Yes. Fixed in Linux 0250acba81654b2ee50bde324ad72b3f0c04d0bd, Linux 88b9c4bbf83d940ab672956e5af921215905dcb4, Linux 01318927a9055136c207399eeb36ce07becac179, Linux 4d69e74034b208588636ecc177e0dd43a7696af3. Upgrade Linux to 4d69e74034b208588636ecc177e0dd43a7696af3 or later.

### How do I check if I'm affected by CVE-2026-98971?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0250acba81654b2ee50bde324ad72b3f0c04d0bd>
- other: <https://git.kernel.org/stable/c/88b9c4bbf83d940ab672956e5af921215905dcb4>
- other: <https://git.kernel.org/stable/c/bf3d841ef12fcbec4458e2750956b738b043a226>
- other: <https://git.kernel.org/stable/c/b78c114600ae3df90c083c72c290437b068577c8>
- other: <https://git.kernel.org/stable/c/01318927a9055136c207399eeb36ce07becac179>
- other: <https://git.kernel.org/stable/c/f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2>
- other: <https://git.kernel.org/stable/c/4d69e74034b208588636ecc177e0dd43a7696af3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98971>

HTML: <https://flawdb.com/CVE-2026-98971> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98971>
