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 E2E2521CA1F for ; Thu, 18 Sep 2025 16:04:55 +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=1758211496; cv=none; b=k4Kkt6H5ZecJHBbBhODngG4yvo1zfMOsMdJQrF3DxNd2IqEGF0v38BrCjgidc3Jnt3nKE80cdKpj3y++w/nZcfbNzzIZ3KaZJYfRhMCSdM3+DnXI2YbVozPs8QkWRVln8KWG+TkiqcHQcL/B1cQ+Wq87nIggF+3JLrlf8DQs4qY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758211496; c=relaxed/simple; bh=E9JxnNWKguqsrgX9PbsUBTodUryIEwWwwjmoof+dbG4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WJKSsocJs/DbCqgwO13gGaA8tkSrQR8d/BCPcdqrYvKyv+Bx9+Dianlw2dxpCit8pSS+j7TJNProCQLzcMtXzQ6wtrzqcR7hHaHnUm7miS1jDY1V8z+elXQt4QEOvubbSsULNrhpmctJeQf048JNs5Hf1WAZtGd+D6DbKiNV/ZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NmzZqGTr; 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="NmzZqGTr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60AFFC4CEE7; Thu, 18 Sep 2025 16:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758211495; bh=E9JxnNWKguqsrgX9PbsUBTodUryIEwWwwjmoof+dbG4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NmzZqGTru+Z7vy0J86/N/Z8SNG6eIsG/xo0Wg2SRPIBRDHK/API56Tt/kIWr8Y/8P yD9cgBok2Frer8kPtl5kA33a57QC618oca4XPb7lN+e4bKPqbAH9nYWQ8oJU15dgSB XIibFF8JwMvOJC7eWDx56LfANXiCgX2JC/g9txGU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53424: clk: mediatek: fix of_iomap memory leak Date: Thu, 18 Sep 2025 18:04:15 +0200 Message-ID: <2025091856-CVE-2023-53424-d5b6@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=2336; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j9GWVIuufjS7YfIOAUHA6hh1vhfvxWSq2aunO5jgrXQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlndHO2VS1MX/xi09EIgV0M+RzrQr7v3j15t8iKhKZpT SHC/A+fdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEDhQyzNNVXPjuj7fY3p2z lLfG6Z6su3H1sBbDgja9KYwbfpSxTKj7xSXaLsfsOK0yBQA= 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: clk: mediatek: fix of_iomap memory leak Smatch reports: drivers/clk/mediatek/clk-mtk.c:583 mtk_clk_simple_probe() warn: 'base' from of_iomap() not released on lines: 496. This problem was also found in linux-next. In mtk_clk_simple_probe(), base is not released when handling errors if clk_data is not existed, which may cause a leak. So free_base should be added here to release base. The Linux kernel CVE team has assigned CVE-2023-53424 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit c58cd0e40ffac67961b945793876b973728f9b80 and fixed in 6.3.13 with commit 2cae6a28d8c12c597e8656962271520434c61c48 Issue introduced in 5.15 with commit c58cd0e40ffac67961b945793876b973728f9b80 and fixed in 6.4.4 with commit 47234e19b00816a8a7b278c7173f6d4e928c43c7 Issue introduced in 5.15 with commit c58cd0e40ffac67961b945793876b973728f9b80 and fixed in 6.5 with commit 3db7285e044144fd88a356f5b641b9cd4b231a77 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-53424 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/clk/mediatek/clk-mtk.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/2cae6a28d8c12c597e8656962271520434c61c48 https://git.kernel.org/stable/c/47234e19b00816a8a7b278c7173f6d4e928c43c7 https://git.kernel.org/stable/c/3db7285e044144fd88a356f5b641b9cd4b231a77