Skip to contentSkip to conversation

CVE-2025-71200: mmc: sdhci-of-dwcmshc: Prevent illegal clock reduction in HS200/HS400 mode

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 14

lore
Share & tools
lore
#0 lore raw

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

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

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

mmc: sdhci-of-dwcmshc: Prevent illegal clock reduction in HS200/HS400 mode

When operating in HS200 or HS400 timing modes, reducing the clock frequency below 52MHz will lead to link broken as the Rockchip DWC MSHC controller requires maintaining a minimum clock of 52MHz in these modes.

Add a check to prevent illegal clock reduction through debugfs:

root@debian:/# echo 50000000 > /sys/kernel/debug/mmc0/clock
root@debian:/# [   30.090146] mmc0: running CQE recovery
mmc0: cqhci: Failed to halt
mmc0: cqhci: spurious TCN for tag 0
WARNING: drivers/mmc/host/cqhci-core.c:797 at cqhci_irq+0x254/0x818, CPU#1: kworker/1:0H/24
Modules linked in:
CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0H Not tainted 6.19.0-rc1-00001-g09db0998649d-dirty #204 PREEMPT
Hardware name: Rockchip RK3588 EVB1 V10 Board (DT)
Workqueue: kblockd blk_mq_run_work_fn
pstate: 604000c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : cqhci_irq+0x254/0x818
lr : cqhci_irq+0x254/0x818
...

The Linux kernel CVE team has assigned CVE-2025-71200 to this issue.

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

	Issue introduced in 6.0 with commit c6f361cba51c536e7a6af31973c6a4e5d7e4e2e4 and fixed in 6.1.162 with commit 59b8a1ca6df4db2ca250e9eeab74e2b0068d69e9
	Issue introduced in 6.0 with commit c6f361cba51c536e7a6af31973c6a4e5d7e4e2e4 and fixed in 6.6.122 with commit f2677d6e2bbc5ba2030825522d2afd0542b038a3
	Issue introduced in 6.0 with commit c6f361cba51c536e7a6af31973c6a4e5d7e4e2e4 and fixed in 6.12.68 with commit de0ad7156036a50982bcb75a080e4af284502be2
	Issue introduced in 6.0 with commit c6f361cba51c536e7a6af31973c6a4e5d7e4e2e4 and fixed in 6.18.8 with commit 36be050f21dea7a3a76dff5a031da6274e8ee468
	Issue introduced in 6.0 with commit c6f361cba51c536e7a6af31973c6a4e5d7e4e2e4 and fixed in 6.19 with commit 3009738a855cf938bbfc9078bec725031ae623a4

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-2025-71200

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/mmc/host/sdhci-of-dwcmshc.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/59b8a1ca6df4db2ca250e9eeab74e2b0068d69e9
	https://git.kernel.org/stable/c/f2677d6e2bbc5ba2030825522d2afd0542b038a3
	https://git.kernel.org/stable/c/de0ad7156036a50982bcb75a080e4af284502be2
	https://git.kernel.org/stable/c/36be050f21dea7a3a76dff5a031da6274e8ee468
	https://git.kernel.org/stable/c/3009738a855cf938bbfc9078bec725031ae623a4