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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-10-23T12:19:44.536Z
- Modified: 2026-10-30T13:21:33.613Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5300ebb695fa0672589ab191062392f686fca75d before 0250acba81654b2ee50bde324ad72b3f0c04d0bd; from 5300ebb695fa0672589ab191062392f686fca75d before 88b9c4bbf83d940ab672956e5af921215905dcb4; from 5300ebb695fa0672589ab191062392f686fca75d before bf3d841ef12fcbec4458e2750956b738b043a226; from 5300ebb695fa0672589ab191062392f686fca75d before b78c114600ae3df90c083c72c290437b068577c8; from 5300ebb695fa0672589ab191062392f686fca75d before 01318927a9055136c207399eeb36ce07becac179; from 5300ebb695fa0672589ab191062392f686fca75d before f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2; from 5300ebb695fa0672589ab191062392f686fca75d before 4d69e74034b208588636ecc177e0dd43a7696af3; 5.11 (not affected: before 5.11; from 5.15.224 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.113 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.2.11 up to 7.2.*; from 7.3 up to *)

## References

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

## Sources

- CVE List: [CVE-2026-98971](https://www.cve.org/CVERecord?id=CVE-2026-98971), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-98971](https://nvd.nist.gov/vuln/detail/CVE-2026-98971), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-98971 · Whole record: https://cve.day/CVE-2026-98971.json · Rebuilt by cve.day 2026-11-25T22:59:46.927Z
