UBUNTU-CVE-2026-90311: Low severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: thermal: hwmon: Remove hwmon class device along with its parent The current code creates one hwmon device per thermal zone type and that device is registered under the first thermal zone of the given type. That turns out to be problematic when the thermal zone holding the hwmon device is removed. For example, say that there are two ACPI thermal zones on a system /sys/devices/virtual/thermal/thermalzone0/ /sys/devices/virtual/thermal/thermalzone1/ The current code registers a hwmon class device for thermalzone0 only: /sys/devices/virtual/thermal/thermalzone0/hwmon0/ because the type is "acpitz" for both of them, but it adds a sysfs attribute that belongs to thermalzone1 under it: /sys/devices/virtual/thermal/thermalzone0/hwmon0/temp2input There is also /sys/devices/virtual/thermal/thermalzone0/hwmon0/temp1input which belongs to thermalzone0. When thermalzone0 is removed, say because the ACPI thermal driver is unbound from the underlying platform device, thermalremovehwmonsysfs() skips the removal of hwmon0 because of the temp2input attribute belonging to thermalzone1 which effectively prevents thermalzone0 removal from making progress. Address this by making thermalremovehwmonsysfs() remove the entire hwmon class device interface for the given thermal zone type when the thermal zone device holding it is removed. To prevent races with thermaladdhwmonsysfs() that may interfere with this, carry out the entire addition and removal of hwmon sysfs interfaces for thermal zones under thermalhwmonlistlock. Also adjust the layout of the labels in thermaladdhwmonsysfs() to the current kernel coding style to align with the new "unlock" label.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
Update thermal hwmon handling so thermal_remove_hwmon_sysfs() removes the entire hwmon class-device interface for the thermal-zone type when its parent thermal zone is removed, and serialize the complete addition and removal of thermal hwmon sysfs interfaces under thermal_hwmon_list_lock to prevent races with thermal_add_hwmon_sysfs().
Event History
Frequently Asked Questions
Which Ubuntu kernel packages are listed as affected?
The listed packages are ubuntu/linux, ubuntu/linux-azure, ubuntu/linux-gcp, ubuntu/linux-aws-fips, ubuntu/linux-azure-fips, ubuntu/linux-fips, ubuntu/linux-gcp-fips, and ubuntu/linux-realtime.
What system state is associated with this issue?
The issue occurs when multiple thermal zones share the same type, such as two ACPI zones of type "acpitz", causing one hwmon device to contain attributes for both zones. If the thermal zone that owns the hwmon device is removed, for example by unbinding its ACPI thermal driver, cleanup can be prevented by attributes belonging to the remaining zone.