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 083472E62A6 for ; Tue, 7 Oct 2025 15:25:59 +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=1759850760; cv=none; b=pL7ZfN+S3My9fDmrqwNqP2496SZE6Hgm7coFzL+p1INrfOCbBKEIGtL0aLZV3ZmBPXbMTwLapEnHmzCt4MfOyAtlvB06T6vyp1gjoeBThzfrzeXMPvtU5brUxPQYbz9EVbpDo0v2ZpZBgaWKXcqX1cYYGFxMhrBC9ayL2/9ACDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850760; c=relaxed/simple; bh=6AOSZEBHzFFTNE3OIsCYUYSQV1NZ/7xU+5upISASJnI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A55bG9eUHGDt9ETBUPU1sBUUXBR8aRv356YVIN8xim7MzuimkO7l7b4tK7YOZAIuNQ9ioUqwaMEhqCfRLt/nPVs9CtYtu5g/UI695DBiPW5Am7I7IQgu3wijfeBv4kNiENl1Y8JQMzZCShiAhz+mT18uwPToWRnvaguVIiRf43g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DBBqlRrW; 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="DBBqlRrW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41118C4CEF1; Tue, 7 Oct 2025 15:25:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850759; bh=6AOSZEBHzFFTNE3OIsCYUYSQV1NZ/7xU+5upISASJnI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DBBqlRrWA1SwmDI7RMplmvyanjFOI841E2ZAEy2+qS04HVfcie4ejDKj5aJ9T5Mu1 IHj1QVP2zToKJy5Fh7LNIbq1n6zubXu4OVQXUltKlbkcquzgXyMfB0tyTOp3ZkSIXU wnyn8pCEaaekENFrzTH9KgSXIiT3pI40M22JG4Ic= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53687: tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk Date: Tue, 7 Oct 2025 17:21:46 +0200 Message-ID: <2025100710-CVE-2023-53687-c50c@gregkh> X-Mailer: git-send-email 2.51.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=3410; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PTWOOqyao1iY+Grrlnl23wJMXQPCE+HY/ygH9GnN9Bk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9Z8ZSry8sPirjfOlyuluTX6+AdpsS7f9+fTlZom48 9aHnaaTOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi9UoMCy4yLPMJtJSdtfPV 6nMXb5hxtEmxhTHMU/YrsD5S91F1bXyyZVGOUfPy+vwXAA== 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: tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk When the best clk is searched, we iterate over all possible clk. If we find a better match, the previous one, if any, needs to be freed. If a better match has already been found, we still need to free the new one, otherwise it leaks. The Linux kernel CVE team has assigned CVE-2023-53687 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit 5f5a7a5578c5885201cf9c85856f023fe8b81765 and fixed in 4.14.322 with commit 933e5b2998bc3a527d15efbf1e97c9e63297aa3c Issue introduced in 3.3 with commit 5f5a7a5578c5885201cf9c85856f023fe8b81765 and fixed in 4.19.291 with commit 01dd8a43a84616c830782166ba3cceb01ad95363 Issue introduced in 3.3 with commit 5f5a7a5578c5885201cf9c85856f023fe8b81765 and fixed in 5.4.251 with commit 46574e5a0a2aee41e6ebb979cfe1dbaea8693e16 Issue introduced in 3.3 with commit 5f5a7a5578c5885201cf9c85856f023fe8b81765 and fixed in 5.10.188 with commit 1962717c4649e026a4252fe6625175affd28a593 Issue introduced in 3.3 with commit 5f5a7a5578c5885201cf9c85856f023fe8b81765 and fixed in 5.15.121 with commit 9dd8091959bc41fee51d0827276a2b982e84adf0 Issue introduced in 3.3 with commit 5f5a7a5578c5885201cf9c85856f023fe8b81765 and fixed in 6.1.40 with commit f0bf102ef9b05d7294bd8d506755465f6867d944 Issue introduced in 3.3 with commit 5f5a7a5578c5885201cf9c85856f023fe8b81765 and fixed in 6.4.5 with commit 1f426293fef1c13742b2a685bf7e363f51f6ee03 Issue introduced in 3.3 with commit 5f5a7a5578c5885201cf9c85856f023fe8b81765 and fixed in 6.5 with commit 832e231cff476102e8204a9e7bddfe5c6154a375 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-53687 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/tty/serial/samsung_tty.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/933e5b2998bc3a527d15efbf1e97c9e63297aa3c https://git.kernel.org/stable/c/01dd8a43a84616c830782166ba3cceb01ad95363 https://git.kernel.org/stable/c/46574e5a0a2aee41e6ebb979cfe1dbaea8693e16 https://git.kernel.org/stable/c/1962717c4649e026a4252fe6625175affd28a593 https://git.kernel.org/stable/c/9dd8091959bc41fee51d0827276a2b982e84adf0 https://git.kernel.org/stable/c/f0bf102ef9b05d7294bd8d506755465f6867d944 https://git.kernel.org/stable/c/1f426293fef1c13742b2a685bf7e363f51f6ee03 https://git.kernel.org/stable/c/832e231cff476102e8204a9e7bddfe5c6154a375