| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-27068: thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path |
| |
| 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 f5f633b18234cecb0e6ee6e5fbb358807dda15c3 and fixed in 6.6.23 with commit 2db869da91afd48e5b9ec76814709be49662b07d |
| Issue introduced in 6.3 with commit f5f633b18234cecb0e6ee6e5fbb358807dda15c3 and fixed in 6.7.11 with commit a37f3652bee468f879d35fe2da9ede3f1dcbb7be |
| Issue introduced in 6.3 with commit f5f633b18234cecb0e6ee6e5fbb358807dda15c3 and fixed in 6.8.2 with commit 9b02197596671800dd934609384b1aca7c6ad218 |
| Issue introduced in 6.3 with commit f5f633b18234cecb0e6ee6e5fbb358807dda15c3 and fixed in 6.9 with commit ca93bf607a44c1f009283dac4af7df0d9ae5e357 |
| |
| 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 |