{"id":"CVE-2026-97582","aliases":["CVE-2026-97582"],"related":[],"kind":"vulnerability","state":"published","title":"hwmon: (gpio-fan) Fix use-after-free in alarm work","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (gpio-fan) Fix use-after-free in alarm work\n\nfan_alarm_irq_handler() queues fan_data->alarm_work, but nothing\ncancels it.  fan_alarm_notify() dereferences fan_data and its hwmon\ndevice.  On unbind, devres frees the interrupt, which only waits for\nthe handler itself, and then releases the hwmon device and fan_data,\nso a pending fan_alarm_notify() can run after those frees.\n\nReplace INIT_WORK() with devm_work_autocancel(), registered before\ndevm_request_irq().  The devres cleanup then frees the interrupt\nfirst, so no new work can be queued, and cancels the work while\nfan_data and the hwmon device are still alive.\n\nThis issue was found by an in-house static analysis tool.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (gpio-fan) Fix use-after-free in alarm work\n\nfan_alarm_irq_handler() queues fan_data->alarm_work, but nothing\ncancels it.  fan_alarm_notify() dereferences fan_data and its hwmon\ndevice.  On unbind, devres frees the interrupt, which only waits for\nthe handler itself, and then releases the hwmon device and fan_data,\nso a pending fan_alarm_notify() can run after those frees.\n\nReplace INIT_WORK() with devm_work_autocancel(), registered before\ndevm_request_irq().  The devres cleanup then frees the interrupt\nfirst, so no new work can be queued, and cancels the work while\nfan_data and the hwmon device are still alive.\n\nThis issue was found by an in-house static analysis tool.","source":"cvelist"}],"published":"2026-09-25T10:22:03.041Z","modified":"2026-10-30T13:21:08.710Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d6fe1360f42e86262153927986dea6502daff703","fixed":"7f96803f612134f585ab3b39e6d5b2d4b9c0606f","status":"affected"},{"type":"git","introduced":"d6fe1360f42e86262153927986dea6502daff703","fixed":"594c62eea7c82f526054496e9fa9b895122a8016","status":"affected"},{"type":"git","introduced":"d6fe1360f42e86262153927986dea6502daff703","fixed":"6e67d9bdac810edacef78cbaeedd34445aa8ceb7","status":"affected"},{"type":"git","introduced":"d6fe1360f42e86262153927986dea6502daff703","fixed":"e9fc7d53b2eb34c0a607d1659f49b46911aaf16c","status":"affected"},{"type":"git","introduced":"d6fe1360f42e86262153927986dea6502daff703","fixed":"9b12bd724db9db318e3a68be17693583dc29a066","status":"affected"},{"type":"git","introduced":"d6fe1360f42e86262153927986dea6502daff703","fixed":"30755d3a5782cd704c8921cac8ee66dffe4383ea","status":"affected"},{"type":"git","introduced":"d6fe1360f42e86262153927986dea6502daff703","fixed":"c6ab7f855891877a16d2e2ddf0cd0305fd098a85","status":"affected"},{"type":"git","introduced":"d6fe1360f42e86262153927986dea6502daff703","fixed":"a2471ed17b0e6ff7bfb6b2ea8e6e5b04c309d293","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.37","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.37","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7f96803f612134f585ab3b39e6d5b2d4b9c0606f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/594c62eea7c82f526054496e9fa9b895122a8016","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6e67d9bdac810edacef78cbaeedd34445aa8ceb7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9fc7d53b2eb34c0a607d1659f49b46911aaf16c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b12bd724db9db318e3a68be17693583dc29a066","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/30755d3a5782cd704c8921cac8ee66dffe4383ea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6ab7f855891877a16d2e2ddf0cd0305fd098a85","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2471ed17b0e6ff7bfb6b2ea8e6e5b04c309d293","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97582","url":"https://www.cve.org/CVERecord?id=CVE-2026-97582","licence":"CVE Terms of Use","modified":"2026-10-30T12:37:29.592Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97582","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97582","licence":"Public domain","modified":"2026-10-30T13:21:08.710Z"}],"updatedAt":"2026-11-25T22:59:40.964Z","epss":{"score":0.0021,"percentile":0.11876,"date":"2026-12-02T12:00:21.000Z"}}