Skip to contentSkip to conversation

CVE-2026-45925: thermal/of: Fix reference leak in thermal_of_cm_lookup()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

thermal/of: Fix reference leak in thermal_of_cm_lookup()

In thermal_of_cm_lookup(), tr_np is obtained via of_parse_phandle(), but never released.

Use the __free(device_node) cleanup attribute to automatically release the node and fix the leak.

[ rjw: Changelog edits ]

The Linux kernel CVE team has assigned CVE-2026-45925 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.12.18 with commit e11df3bffde16fd3b6843aadfb921b5be0f8b55a and fixed in 6.12.75 with commit 8af710156c53cdb392d529497ef2b3a10a1f9370
	Issue introduced in 6.14 with commit 423de5b5bc5b267586b449abd1c4fde562aa0cf9 and fixed in 6.18.14 with commit 8344d5da9df74fdbef676214d0c482fc822a01ca
	Issue introduced in 6.14 with commit 423de5b5bc5b267586b449abd1c4fde562aa0cf9 and fixed in 6.19.4 with commit 025796ccd7f9f2e013e12319de26b6c021a80c1f
	Issue introduced in 6.14 with commit 423de5b5bc5b267586b449abd1c4fde562aa0cf9 and fixed in 7.0 with commit a1fe789a96fe47733c133134fd264cb7ca832395
	Issue introduced in 6.13.6 with commit a1e9e19a70eed67a69ca697368739ea1a3ba5780

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-45925

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/thermal/thermal_of.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/8af710156c53cdb392d529497ef2b3a10a1f9370
	https://git.kernel.org/stable/c/8344d5da9df74fdbef676214d0c482fc822a01ca
	https://git.kernel.org/stable/c/025796ccd7f9f2e013e12319de26b6c021a80c1f
	https://git.kernel.org/stable/c/a1fe789a96fe47733c133134fd264cb7ca832395