CVE-2026-99720: hwmon: chipcap2: fix IRQ teardown ordering
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
hwmon: chipcap2: fix IRQ teardown ordering
The threaded IRQs are currently requested before the hwmon device is registered. Since devres releases resources in reverse order, the hwmon device is unregistered before the IRQs are freed during driver teardown. An IRQ may therefore still run after the hwmon device has been released and access the stale data->hwmon pointer.
Separate IRQ discovery from IRQ registration so that the IRQ numbers and alarm visibility flags are initialized before registering the hwmon device while the IRQs are released before the hwmon device during devres cleanup.
The Linux kernel CVE team has assigned CVE-2026-99720 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.9 with commit 3af350929e752fe72f0457033d448bff9aac695a and fixed in 7.3.5 with commit a205f2113200c6357e0526c94caaa4c2aceb2fc7 Issue introduced in 6.9 with commit 3af350929e752fe72f0457033d448bff9aac695a and fixed in 7.4-rc2 with commit d2a66c515d7730fd453485ffb306c412f1f46d72
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99720
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/hwmon/chipcap2.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a205f2113200c6357e0526c94caaa4c2aceb2fc7 https://git.kernel.org/stable/c/d2a66c515d7730fd453485ffb306c412f1f46d72