# CVE-2026-64038: hwmon: (lm90) Stop work before releasing hwmon device

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.09%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-07-19T15:39:26.071Z
- Modified: 2026-10-30T13:19:30.120Z
- Weaknesses: CWE-362
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

hwmon: (lm90) Stop work before releasing hwmon device

Sashiko reports:

In lm90_probe(), the devm action to cancel the alert_work and report_work
(lm90_restore_conf) is registered in lm90_init_client() before
devm_hwmon_device_register_with_info() is called.

Because devm executes cleanup actions in reverse order during module
unbind or probe failure, the hwmon device is unregistered and freed first.

If lm90_alert_work() or lm90_report_alarms() runs in the window between
the hwmon device being freed and the delayed works being cancelled,
lm90_update_alarms() will dereference the freed data->hwmon_dev here.

Fix the problem by canceling the workers separately after registering
the hwmon device and before registering the interrupt handler. This ensures
that the workers are canceled after interrupts are disabled and before
the hwmon device is released. Add "shutdown" flag to indicate that device
shutdown is in progress to prevent workers from being re-armed.

(As written by CVE List.)

## Affected

- Linux Linux: from f6d0775119fb905fb02eafa98d575cf8ee792d46 before 1decb2c1762f77910de787fbf9b3afb40cc1d646; from f6d0775119fb905fb02eafa98d575cf8ee792d46 before 1fe96176636cb17906680c098688b144bd9c1c45; from f6d0775119fb905fb02eafa98d575cf8ee792d46 before 5c116abf208dd97c4ceb76c5c50c9bc34a017796; from f6d0775119fb905fb02eafa98d575cf8ee792d46 before c98107817b0f6cdf51adc5e84e75c39ee25d8b28; from f6d0775119fb905fb02eafa98d575cf8ee792d46 before 479e297526aeb19c745eac5c1897f455f83dc5f8; from f6d0775119fb905fb02eafa98d575cf8ee792d46 before b09a45601094c7f4ec4db8090b825fa61e169d93; 6.0 (not affected: before 6.0; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.0 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/1decb2c1762f77910de787fbf9b3afb40cc1d646>
- <https://git.kernel.org/stable/c/1fe96176636cb17906680c098688b144bd9c1c45>
- <https://git.kernel.org/stable/c/5c116abf208dd97c4ceb76c5c50c9bc34a017796>
- <https://git.kernel.org/stable/c/c98107817b0f6cdf51adc5e84e75c39ee25d8b28> (patch)
- <https://git.kernel.org/stable/c/479e297526aeb19c745eac5c1897f455f83dc5f8> (patch)
- <https://git.kernel.org/stable/c/b09a45601094c7f4ec4db8090b825fa61e169d93> (patch)

## Sources

- CVE List: [CVE-2026-64038](https://www.cve.org/CVERecord?id=CVE-2026-64038), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-64038](https://nvd.nist.gov/vuln/detail/CVE-2026-64038), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-64038 · Whole record: https://cve.day/CVE-2026-64038.json · Rebuilt by cve.day 2026-11-25T22:59:28.956Z
