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 4B4AE182D15 for ; Thu, 30 May 2024 15:36:00 +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=1717083360; cv=none; b=PuTE8eYNavgdpVYE9ak5xPgFCE4+FtMibznst6+MnArAT9buECLSsxBE6qf0gdZOZTaAyDI6tsRudcLL+4iGsav28LgDFor1zeTBz1hasFyAWLJ6/eTJ9Y8hL0LDqaH+dXCs/YHj3gJh1NCpo5ejdJeRCqKFNaXgNNHjrkIF5MQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083360; c=relaxed/simple; bh=OXbOotRaouiyaw29li5TMDUtMV/gl6AJzwtkX6vL1xA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YiaEthkSJLZNhwix2XFPYrAQ/xfaRL4DBvsUH6Q/m7Lm/bXG0e7usxxbvhLVVdVU36R9bxEujxCiKnQ6hGtcQF3RXohwBkyKJzAhELDLGF6g6ZsMa7cKctepSZTqovhLMaV0RnH1ZWri0ZTdcC0llXTLCd71qga43i6nwS9a61o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JM5gbqW5; 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="JM5gbqW5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3717C2BBFC; Thu, 30 May 2024 15:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083360; bh=OXbOotRaouiyaw29li5TMDUtMV/gl6AJzwtkX6vL1xA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JM5gbqW5PX4rfWNqFS6fogyNZwi3UxAbEXs5cAXlMJcJPEltU5Sk8ss/g4gYvov/T V7nu1k5NPYgpplN5615a+y8oE37dYC6ldlVx0hPzUkExyhVPO6SE3SxSScWPcNW5ZS Jtp9sD2TsI+GV8udRtWtt4N+7PiDSOjMj2MHLLUE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36956: thermal/debugfs: Free all thermal zone debug memory on zone removal Date: Thu, 30 May 2024 17:35:53 +0200 Message-ID: <2024053041-CVE-2024-36956-59d8@gregkh> X-Mailer: git-send-email 2.45.1 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=2006; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OXbOotRaouiyaw29li5TMDUtMV/gl6AJzwtkX6vL1xA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRc872R1TcVo2dKpw/Y1/n79wSoWV73r38xnYjNq7m1 T/uVBHrjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI912GuaJGj9oal1z/qi76 4m7m17KDy039yhnmx5xY/NbPOFjuW+iN6d4XGls/rdtcDAA= 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/debugfs: Free all thermal zone debug memory on zone removal Because thermal_debug_tz_remove() does not free all memory allocated for thermal zone diagnostics, some of that memory becomes unreachable after freeing the thermal zone's struct thermal_debugfs object. Address this by making thermal_debug_tz_remove() free all of the memory in question. Cc :6.8+ # 6.8+ The Linux kernel CVE team has assigned CVE-2024-36956 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 7ef01f228c9f and fixed in 6.8.10 with commit f51564e4b399 Issue introduced in 6.8 with commit 7ef01f228c9f and fixed in 6.9 with commit 72c1afffa4c6 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-36956 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_debugfs.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/f51564e4b3992b53df79460ed5781a5330b5b1d5 https://git.kernel.org/stable/c/72c1afffa4c645fe0e0f1c03e5f34395ed65b5f4