Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DCA212BF3D for ; Wed, 1 May 2024 13:07:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568855; cv=none; b=L4URbcyqIhnWUQ1DHX4mFQ5/6ptRo/Wb293WbeDBWc4uyQCj5uF0RgMj+oUoPgd2n628pStsGpPzrFgBYYckkr+kwmA5SjdeOJxw6KoY9eNMHgcL0H+OR++8FKfHBG3Y0t7fJ4/gTI931vzmRNPaYgrkpQ2c6YJLhtShl35nB5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568855; c=relaxed/simple; bh=qQXxL8O7iDI5Oh4f2EYfRl5PX9oipf50R1HLwEX1E9E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N0OQmP2AUdYc+XtvhVrBQ0xuj9uNO+FZB9gTK3iei9JoOYiMzA5xAeiHuqziodOwVWdWW6LEpoxqxe1be7PAhA/M4/hbKd2yjR2ZN0ConFuGmHxldYcc0wn3G4Hn96cNQQN+RCzYQuEBipZroh6yX1ghM+98QvEUqXJgEhEHXao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TAJRZdV+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TAJRZdV+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8664EC113CC; Wed, 1 May 2024 13:07:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568854; bh=qQXxL8O7iDI5Oh4f2EYfRl5PX9oipf50R1HLwEX1E9E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TAJRZdV+nIDAIQnRvQTgBm7EBvV6e6SfCNmsDTlP8xdehTBA9Vow22YoAKZC2VC8h bFc8iOcY1XPQK1CZYkeYgyqi6NOy9hHcDbzaXciGsx6fyU1jdrKbz+O+LrKK/bRKZ4 O7kNweXdWIA1hQdlB67lEgI+pUxLEd9K9xIit5+s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27068: thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path Date: Wed, 1 May 2024 15:06:39 +0200 Message-ID: <2024050132-CVE-2024-27068-c844@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2114; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qQXxL8O7iDI5Oh4f2EYfRl5PX9oipf50R1HLwEX1E9E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGdhHf3ynod02Iy1t5rHfvqwAl7R8ztW5cuL9Fd/uyf gPXXWbsHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARpU6G+QW/Kwsv8vbvzp7E KJnDtK90g35JKcP8kum153/0Tf+p+zHlO9/KiccC9577CQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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