Skip to contentSkip to conversation

CVE-2026-53152: mmc: dw_mmc-rockchip: Add missing private data for very old controllers

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

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: dw_mmc-rockchip: Add missing private data for very old controllers

The really old controllers (rk2928, rk3066, rk3188) do not support UHS speeds at all, and thus never handled phase data.

For that reason it never had a parse_dt callback and no driver private data at all.

Commit ff6f0286c896 ("mmc: dw_mmc-rockchip: Add memory clock auto-gating support") makes the private data sort of mandatory, because the init function checks whether phases are configured internally or through the clock controller.

This results in the old SoCs then experiencing NULL-pointer dereferences when they try to access that private-data struct.

While we could have if (priv) conditionals in all places, it's way less cluttery to just give the old types their private-data struct.

The Linux kernel CVE team has assigned CVE-2026-53152 to this issue.

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

	Issue introduced in 6.12.78 with commit 7457b35afafef5195a498d13b3e05f4258beeecc and fixed in 6.12.94 with commit b1180ff50cca48807893ecde7d1f81d573c88c85
	Issue introduced in 6.18.19 with commit 5b58ba042e2379f4c01da3211fd17dbdc983c2ac and fixed in 6.18.36 with commit 7f8007be13e6cc1e0a508fe461f9a91ba9a28b8c
	Issue introduced in 6.19 with commit ff6f0286c896f062853552097220dd93961be9c4 and fixed in 7.0.13 with commit 8d9eca906e76d3dd40e5f2c79701f066678f2e62
	Issue introduced in 6.19 with commit ff6f0286c896f062853552097220dd93961be9c4 and fixed in 7.1 with commit 1e9a4850afa0ceb63984fb1a9f3e86d0fc4fd18f

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-2026-53152

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/dw_mmc-rockchip.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/b1180ff50cca48807893ecde7d1f81d573c88c85
	https://git.kernel.org/stable/c/7f8007be13e6cc1e0a508fe461f9a91ba9a28b8c
	https://git.kernel.org/stable/c/8d9eca906e76d3dd40e5f2c79701f066678f2e62
	https://git.kernel.org/stable/c/1e9a4850afa0ceb63984fb1a9f3e86d0fc4fd18f