Skip to contentSkip to conversation

CVE-2024-27068: thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1, 2024

lore
Share & tools
lore
#0 lore raw

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

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

thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path

If devm_krealloc() fails, then 'efuse' is leaking. So free it to avoid a leak.

The Linux kernel CVE team has assigned CVE-2024-27068 to this issue.

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

	Issue introduced in 6.3 with commit f5f633b18234 and fixed in 6.6.23 with commit 2db869da91af
	Issue introduced in 6.3 with commit f5f633b18234 and fixed in 6.7.11 with commit a37f3652bee4
	Issue introduced in 6.3 with commit f5f633b18234 and fixed in 6.8.2 with commit 9b0219759667
	Issue introduced in 6.3 with commit f5f633b18234 and fixed in 6.9-rc1 with commit ca93bf607a44

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-2024-27068

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/mediatek/lvts_thermal.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/2db869da91afd48e5b9ec76814709be49662b07d
	https://git.kernel.org/stable/c/a37f3652bee468f879d35fe2da9ede3f1dcbb7be
	https://git.kernel.org/stable/c/9b02197596671800dd934609384b1aca7c6ad218
	https://git.kernel.org/stable/c/ca93bf607a44c1f009283dac4af7df0d9ae5e357