CVE-2026-97582 hwmon: (gpio-fan) Fix use-after-free in alarm work
A use-after-free in the Linux kernel gpio-fan driver allows local attackers to execute arbitrary code or escalate privileges via race conditions during device unbinding.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-97582?
CVE-2026-97582 is an use after free vulnerability in Linux, published on 25 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (gpio-fan) Fix use-after-free in alarm work
fan_alarm_irq_handler() queues fan_data->alarm_work, but nothing cancels it. fan_alarm_notify() dereferences fan_data and its hwmon device. On unbind, devres frees the interrupt, which only waits for the handler itself, and then releases the hwmon device and fan_data, so a pending fan_alarm_notify() can run after those frees.
Replace INIT_WORK() with devm_work_autocancel(), registered before devm_request_irq(). The devres cleanup then frees the interrupt first, so no new work can be queued, and cancels the work while fan_data and the hwmon device are still alive.
This issue was found by an in-house static analysis tool.
Which versions are affected by CVE-2026-97582?
How do I fix CVE-2026-97582?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2026-97582 being exploited?
There is no known exploitation of CVE-2026-97582 in the wild and no public exploit code.
Sources
Also known as AZL-104271, BELL-CVE-2026-97582, DEBIAN-CVE-2026-97582, GHSA-g5h6-rr2f-33x7, UBUNTU-CVE-2026-97582.