CVE-2026-98971
NoneCVSS
—
EPSS
0.2%
Published
Oct 23, 2026
CISA due date
—
Cloudanix analysis
A small bookkeeping mistake in a Linux driver for certain GPIO chips can cause the operating system to clean up the wrong internal identifier, which may make hardware resources unavailable or unstable.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Privilege Gain
- Component
- OS kernel
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The gpio_exar_probe function stores an allocated device ID in exar_gpio only after calling devm_add_action_or_reset; on registration failure the cleanup handler releases ID 0 instead of the correct nonzero ID, producing an ID leak or erroneous free of another device's ID.
Why it matters to the business
Systems using Exar GPIO hardware may experience resource exhaustion or unexpected device behavior after driver load failures; the issue was disclosed two days ago with negligible exploit probability and no known threat-actor activity.
How an attack unfolds
An attacker would need to trigger repeated probe failures on an Exar GPIO device while other devices concurrently allocate IDs, causing the kernel to free an ID still in use by another instance and potentially leading to subsequent use-after-free when that ID is reused.
How to fix it
Update to a Linux kernel containing the commit that stores the ID before registering the devm cleanup action; no downstream fixed-version packages were listed.
How to confirm the fix worked
Confirm the source change that moves the ID assignment before devm_add_action_or_reset is present in the running kernel tree; recompile and test probe-failure paths with multiple Exar devices.
Typical attack path
- Gain local access to a system with an Exar GPIO device
- Induce repeated gpio_exar_probe failures (e.g., via module reload or hardware manipulation)
- Force concurrent ID allocations from other drivers
- Trigger reuse of the erroneously freed ID to reach use-after-free
How to detect it
Examine kernel logs for exar probe failures followed by warnings about ID 0 being freed; no public threat-actor campaigns or ransomware usage have been reported for this issue.
What your security team should do
- Monitor upstream stable kernel releases for the gpio-exar fix
- Prioritize patching on any multi-device Exar GPIO deployments once available
- Review kernel logs for repeated exar probe failures as an operational health signal
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|