CVE-2026-97582

Source
https://cve.org/CVERecord?id=CVE-2026-97582
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97582.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-97582
Downstream
Published
2026-09-25T10:22:03Z
Modified
2026-09-26T03:48:40Z
Summary
hwmon: (gpio-fan) Fix use-after-free in alarm work
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97582.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d6fe1360f42e86262153927986dea6502daff703
Fixed
9b12bd724db9db318e3a68be17693583dc29a066
Fixed
30755d3a5782cd704c8921cac8ee66dffe4383ea
Fixed
c6ab7f855891877a16d2e2ddf0cd0305fd098a85
Fixed
a2471ed17b0e6ff7bfb6b2ea8e6e5b04c309d293

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97582.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.37
Fixed
6.12.111
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.53
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97582.json"