CVE-2026-45925: thermal/of: Fix reference leak in thermal_of_cm_lookup()
In the Linux kernel, the following vulnerability has been resolved:
thermal/of: Fix reference leak in thermalofcmlookup()
In thermalofcmlookup(), trnp is obtained via ofparsephandle(), but never released.
Use the free(devicenode) cleanup attribute to automatically release the node and fix the leak.
[ rjw: Changelog edits ]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.85-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.18.14-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.116-1Fixed in 7.2.15-1Fixed in 7.3.3-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.75 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.14 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.14 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.19.4 - Compensating control
In thermal_of_cm_lookup(), use the __free(device_node) cleanup attribute for tr_np so the node obtained via of_parse_phandle() is automatically released.
Event History
Frequently Asked Questions
What access does an attacker need to exploit this issue?
The CVSS vector indicates local access and low privileges are required. No user interaction is required.
What is the impact of successful exploitation?
The reported impact is limited to availability: high availability impact is listed, while confidentiality and integrity impacts are listed as none.
What component is affected?
The issue is in the Linux kernel thermal Open Firmware code path, specifically thermal_of_cm_lookup(). It involves an unreleased device-node reference obtained through of_parse_phandle().