# CVE-2026-97582: hwmon: (gpio-fan) Fix use-after-free in alarm work

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-09-25T10:22:03.041Z
- **Modified:** 2026-10-30T13:21:08.710Z

## Who should check

- Anyone running Linux \>= d6fe1360f42e86262153927986dea6502daff703, \< 7f96803f612134f585ab3b39e6d5b2d4b9c0606f; \>= d6fe1360f42e86262153927986dea6502daff703, \< 594c62eea7c82f526054496e9fa9b895122a8016; \>= d6fe1360f42e86262153927986dea6502daff703, \< 6e67d9bdac810edacef78cbaeedd34445aa8ceb7; \>= d6fe1360f42e86262153927986dea6502daff703, \< e9fc7d53b2eb34c0a607d1659f49b46911aaf16c; \>= d6fe1360f42e86262153927986dea6502daff703, \< 9b12bd724db9db318e3a68be17693583dc29a066; \>= d6fe1360f42e86262153927986dea6502daff703, \< 30755d3a5782cd704c8921cac8ee66dffe4383ea; \>= d6fe1360f42e86262153927986dea6502daff703, \< c6ab7f855891877a16d2e2ddf0cd0305fd098a85; \>= d6fe1360f42e86262153927986dea6502daff703, \< a2471ed17b0e6ff7bfb6b2ea8e6e5b04c309d293
- Anyone running Linux 2.6.37

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

## Affected and fixed versions

- Linux: \>= d6fe1360f42e86262153927986dea6502daff703, \< 7f96803f612134f585ab3b39e6d5b2d4b9c0606f; \>= d6fe1360f42e86262153927986dea6502daff703, \< 594c62eea7c82f526054496e9fa9b895122a8016; \>= d6fe1360f42e86262153927986dea6502daff703, \< 6e67d9bdac810edacef78cbaeedd34445aa8ceb7; \>= d6fe1360f42e86262153927986dea6502daff703, \< e9fc7d53b2eb34c0a607d1659f49b46911aaf16c; \>= d6fe1360f42e86262153927986dea6502daff703, \< 9b12bd724db9db318e3a68be17693583dc29a066; \>= d6fe1360f42e86262153927986dea6502daff703, \< 30755d3a5782cd704c8921cac8ee66dffe4383ea; \>= d6fe1360f42e86262153927986dea6502daff703, \< c6ab7f855891877a16d2e2ddf0cd0305fd098a85; \>= d6fe1360f42e86262153927986dea6502daff703, \< a2471ed17b0e6ff7bfb6b2ea8e6e5b04c309d293 (cvelist)
- Linux: 2.6.37 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-97582. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97582.md
Affected: Linux >= d6fe1360f42e86262153927986dea6502daff703, < 7f96803f612134f585ab3b39e6d5b2d4b9c0606f; >= d6fe1360f42e86262153927986dea6502daff703, < 594c62eea7c82f526054496e9fa9b895122a8016; >= d6fe1360f42e86262153927986dea6502daff703, < 6e67d9bdac810edacef78cbaeedd34445aa8ceb7; >= d6fe1360f42e86262153927…
Fixed in: Linux 7f96803f612134f585ab3b39e6d5b2d4b9c0606f, Linux 594c62eea7c82f526054496e9fa9b895122a8016, Linux 6e67d9bdac810edacef78cbaeedd34445aa8ceb7, Linux 9b12bd724db9db318e3a68be17693583dc29a066, Linux 30755d3a5782cd704c8921cac8ee66dffe4383ea

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-97582 being exploited?

There is no confirmed exploitation: CVE-2026-97582 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-97582?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-97582?

Linux \>= d6fe1360f42e86262153927986dea6502daff703, \< 7f96803f612134f585ab3b39e6d5b2d4b9c0606f; \>= d6fe1360f42e86262153927986dea6502daff703, \< 594c62eea7c82f526054496e9fa9b895122a8016; \>= d6fe1360f42e86262153927986dea6502daff703, \< 6e67d9bdac810edacef78cbaeedd34445aa8ceb7; \>= d6fe1360f42e86262153927986dea6502daff703, \< e9fc7d53b2eb34c0a607d1659f49b46911aaf16c; \>= d6fe1360f42e86262153927986dea6502daff703, \< 9b12bd724db9db318e3a68be17693583dc29a066; \>= d6fe1360f42e86262153927986dea6502daff703, \< 30755d3a5782cd704c8921cac8ee66dffe4383ea; \>= d6fe1360f42e86262153927986dea6502daff703, \< c6ab7f855891877a16d2e2ddf0cd0305fd098a85; \>= d6fe1360f42e86262153927986dea6502daff703, \< a2471ed17b0e6ff7bfb6b2ea8e6e5b04c309d293; Linux 2.6.37.

### Is there a fix for CVE-2026-97582?

Yes. Fixed in Linux 7f96803f612134f585ab3b39e6d5b2d4b9c0606f, Linux 594c62eea7c82f526054496e9fa9b895122a8016, Linux 6e67d9bdac810edacef78cbaeedd34445aa8ceb7, Linux 9b12bd724db9db318e3a68be17693583dc29a066, Linux 30755d3a5782cd704c8921cac8ee66dffe4383ea. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-97582?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/7f96803f612134f585ab3b39e6d5b2d4b9c0606f>
- other: <https://git.kernel.org/stable/c/594c62eea7c82f526054496e9fa9b895122a8016>
- other: <https://git.kernel.org/stable/c/6e67d9bdac810edacef78cbaeedd34445aa8ceb7>
- other: <https://git.kernel.org/stable/c/e9fc7d53b2eb34c0a607d1659f49b46911aaf16c>
- other: <https://git.kernel.org/stable/c/9b12bd724db9db318e3a68be17693583dc29a066>
- other: <https://git.kernel.org/stable/c/30755d3a5782cd704c8921cac8ee66dffe4383ea>
- other: <https://git.kernel.org/stable/c/c6ab7f855891877a16d2e2ddf0cd0305fd098a85>
- other: <https://git.kernel.org/stable/c/a2471ed17b0e6ff7bfb6b2ea8e6e5b04c309d293>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-97582>

HTML: <https://flawdb.com/CVE-2026-97582> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-97582>
