CVE-2026-64038

Source
https://cve.org/CVERecord?id=CVE-2026-64038
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64038.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-64038
Downstream
Published
2026-07-19T15:39:26.071Z
Modified
2026-07-21T03:47:47.715374569Z
Summary
hwmon: (lm90) Stop work before releasing hwmon device
Details

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

hwmon: (lm90) Stop work before releasing hwmon device

Sashiko reports:

In lm90probe(), the devm action to cancel the alertwork and reportwork (lm90restoreconf) is registered in lm90initclient() before devmhwmondeviceregisterwithinfo() 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 lm90alertwork() or lm90reportalarms() runs in the window between the hwmon device being freed and the delayed works being cancelled, lm90updatealarms() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64038.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
f6d0775119fb905fb02eafa98d575cf8ee792d46
Fixed
c98107817b0f6cdf51adc5e84e75c39ee25d8b28
Fixed
479e297526aeb19c745eac5c1897f455f83dc5f8
Fixed
b09a45601094c7f4ec4db8090b825fa61e169d93

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.18.34
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.11

Database specific

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