Skip to contentSkip to conversation

CVE-2023-53274: clk: mediatek: mt8183: Add back SSPM related clocks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

clk: mediatek: mt8183: Add back SSPM related clocks

This reverts commit 860690a93ef23b567f781c1b631623e27190f101.

On the MT8183, the SSPM related clocks were removed claiming a lack of usage. This however causes some issues when the driver was converted to the new simple-probe mechanism. This mechanism allocates enough space for all the clocks defined in the clock driver, not the highest index in the DT binding. This leads to out-of-bound writes if their are holes in the DT binding or the driver (due to deprecated or unimplemented clocks). These errors can go unnoticed and cause memory corruption, leading to crashes in unrelated areas, or nothing at all. KASAN will detect them.

Add the SSPM related clocks back to the MT8183 clock driver to fully implement the DT binding. The SSPM clocks are for the power management co-processor, and should never be turned off. They are marked as such.

The Linux kernel CVE team has assigned CVE-2023-53274 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.4 with commit 3f37ba7cc385ba07762ffcd7ac38af8c0f84dd3e and fixed in 6.4.10 with commit 45d69917a4af6c869193f95932dc6d6f15d5ef86
	Issue introduced in 6.4 with commit 3f37ba7cc385ba07762ffcd7ac38af8c0f84dd3e and fixed in 6.5 with commit 1eb8d61ac5c9c7ec56bb96d433532807509b9288

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-53274

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-mt8183.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/45d69917a4af6c869193f95932dc6d6f15d5ef86
	https://git.kernel.org/stable/c/1eb8d61ac5c9c7ec56bb96d433532807509b9288