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 05A3731AF17 for ; Wed, 24 Dec 2025 10:57:40 +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=1766573861; cv=none; b=pJXzflMfjM4wN4SSzD3uJeeAVpgMbVe2mzxHQ5D/6vc6uxIld7mUdrreRjESQPq6B6/hArymkJVjGub0xINifkbd2rshJVcVAKm+IM7umk4CT+2vqegqNZLLQPeoQLZQ6SNRsXLn/Mi6kQpkIciykrRa1UKYfyjI93KJWyQML5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573861; c=relaxed/simple; bh=PiIcPKo8e3ilZuz/dG71op4pPvgU/gHcb3r09PVFrUo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mmTS46J0LPREnhF4Jlv9QyRCYudsTDXMK1BHcqhusEZNi86yAd9Y6SbwUrE9tD/fJpecQARlfHyeXW+un0hR4RmNhuL/Fy56s3PC8b3Qh7VCzRdKLD/6RZhBzMPOBF+PrYX0fSh25OmUOeWKUCRwvlgoVsEeLL0NkNFV1nkLCtg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sP7rKqm2; 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="sP7rKqm2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19B62C4CEFB; Wed, 24 Dec 2025 10:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573860; bh=PiIcPKo8e3ilZuz/dG71op4pPvgU/gHcb3r09PVFrUo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=sP7rKqm22i/U9lMmaoEp//kva9FkQpDC5c+Rkp2cY4FpfcictFbCSkgzN0IW03dhI +HscGhhUB9nVT9WExWwUlhP9KFQTH2Q/UgE1EI1TWImUMuEm1PsawXdtR5B2lmxdIY CdU28SbdBArf6Slm/ryTK8JrA6M3E/csiCUITupQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53997: thermal: of: fix double-free on unregistration Date: Wed, 24 Dec 2025 11:56:41 +0100 Message-ID: <2025122426-CVE-2023-53997-8776@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2100; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NrfZiuGh9oQccJElbh/oAq5GOe6Q+38zqiI9hPFtkEg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex27dvufBK7A57eWsWDOR1jl6fSrHpk6R1Xz29ca7X Yqn9DJWdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHC4xLDh0ekFu/a73/98u 4e08/lXp3T/XkASG+ckNJiy790/dfWWTzIP47YzLVgU7/AcA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: thermal: of: fix double-free on unregistration Since commit 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone parameters structure"), thermal_zone_device_register() allocates a copy of the tzp argument and frees it when unregistering, so thermal_of_zone_register() now ends up leaking its original tzp and double-freeing the tzp copy. Fix this by locating tzp on stack instead. The Linux kernel CVE team has assigned CVE-2023-53997 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 3d439b1a2ad36c8b4ea151c8de25309d60d17407 and fixed in 6.4.8 with commit adce49089412a9ae28f5c666e0bb12fbcd86b3f7 Issue introduced in 6.4 with commit 3d439b1a2ad36c8b4ea151c8de25309d60d17407 and fixed in 6.5 with commit ac4436a5b20e0ef1f608a9ef46c08d5d142f8da6 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-2023-53997 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/adce49089412a9ae28f5c666e0bb12fbcd86b3f7 https://git.kernel.org/stable/c/ac4436a5b20e0ef1f608a9ef46c08d5d142f8da6