CVE-2026-139494: wifi: mt76: mt7915: fix thermal zone use-after-free
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: fix thermal zone use-after-free
The thermal zone registered via devmthermalofzoneregister() on the parent device is never torn down when the phy is unregistered, so the thermal core can still dereference it after the phy is freed.
Unregister the thermal zone alongside the cooling device in mt7915unregisterthermal(). Also clear phy->tzone and phy->cdev after unregistering so the function is safe to call when only a subset of the objects were registered, e.g. after a partially failed mt7915thermalinit().
While at it, include the band index in the thermal zone registration warning to help identify which band failed on multi-band chips.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In mt7915_unregister_thermal(), unregister the thermal zone alongside the cooling device, then clear phy->tzone and phy->cdev so cleanup is safe after partial initialization.
Event History
Frequently Asked Questions
When can the stale thermal-zone reference be used?
The issue occurs after a PHY is unregistered while its thermal zone, registered on the parent device, remains active. The thermal core can then dereference the thermal-zone state after the PHY has been freed.
Are partially initialized thermal objects relevant?
Yes. The unregister path must also be safe when only some thermal objects were registered, such as after a partially failed mt7915_thermal_init(). The fix clears both phy->tzone and phy->cdev after unregistering them.
How can a multi-band thermal registration failure be distinguished?
The updated thermal-zone registration warning includes the band index. This helps identify which band failed to register on multi-band chips.