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.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel use‑after‑free
Action: Patch promptly
AI Analysis

Impact

In the Linux kernel, the gpio‑fan driver schedules fan alarm work items that may be executed after the associated fan_data structure and hwmon device are freed during device unbinding. This use‑after‑free can corrupt kernel memory when the work handler dereferences a released pointer. The effect is kernel memory corruption and potential system instability, but the CPE data does not list any successful exploitation.

Affected Systems

Any Linux kernel that includes the gpio‑fan driver is affected. The advisory does not specify an exact version range, so all kernels containing the unpatched implementation of fan_alarm_irq_handler and fan_alarm_notify remain vulnerable while the device is unbound. No vendor versioning is provided in the CNA data.

Risk and Exploitability

The vulnerability receives a CVSS 5.5 score, representing medium severity. EPSS is less than 1%, indicating a low chance of exploitation in the wild. It is not listed in CISA's KEV catalog. Attack likely local: an attacker would need to trigger a pending fan alarm while the device is being unbound, which requires privileged or local access to hardware monitoring interfaces. No remote exploitation path is documented in the input.

Generated by OpenCVE AI on October 1, 2026 at 10:06 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the devm_work_autocancel fix for the gpio-fan driver.
  • Reboot the system, or unload and reload the gpio-fan module, to ensure the patched code is active.
  • Monitor kernel logs (e.g., dmesg) and hardware‑monitoring tools for signs of anomalous behavior after the update.

Generated by OpenCVE AI on October 1, 2026 at 10:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Fri, 30 Oct 2026 12:45:00 +0000


Sat, 03 Oct 2026 11:15:00 +0000


Tue, 29 Sep 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 22:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
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.
Title hwmon: (gpio-fan) Fix use-after-free in alarm work
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-30T12:37:29.592Z

Reserved: 2026-09-24T16:01:01.156Z

Link: CVE-2026-97582

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:09.010

Modified: 2026-10-30T13:21:08.710

Link: CVE-2026-97582

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97582 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T10:15:06Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference