CVE-2026-142940: wifi: mt76: mt7915: unregister thermal cooling device on hwmon failure
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: unregister thermal cooling device on hwmon failure
mt7915thermalinit() registered the thermal cooling device and its sysfs link, then returned the hwmon registration error without undoing them. The cooling device (not devm-managed) and the link then leaked, and its callbacks referenced the freed phy. Unregister the cooling device before returning the error.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.16 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
In mt7915_thermal_init(), unregister the thermal cooling device and remove its sysfs link if hwmon registration fails, before returning the error.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The affected path is in the Linux kernel mt76 mt7915 Wi-Fi driver. It is reached only when hwmon registration fails during mt7915 thermal initialization after the cooling device and its sysfs link have already been registered.
Are fixed kernel release versions identified?
No kernel release versions are provided. The available fix references are the listed stable kernel commits, so version applicability must be determined by checking whether those commits are present in the kernel source or vendor kernel.