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

Not scored Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-98971?

CVE-2026-98971 is a vulnerability in Linux, published on 23 Oct 2026.

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

Which versions are affected by CVE-2026-98971?

How do I fix CVE-2026-98971?

Upgrade to a fixed version.

Is CVE-2026-98971 being exploited?

There is no known exploitation of CVE-2026-98971 in the wild and no public exploit code.

Sources

Also known as AZL-110795, BELL-CVE-2026-98971, DEBIAN-CVE-2026-98971, GHSA-x5r8-cmvp-6558, UBUNTU-CVE-2026-98971.

Is CVE-2026-98971 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free