Skip to contentSkip to conversation

CVE-2025-71287: memory: mtk-smi: fix device leak on larb probe

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

lore
Share & tools
lore
#0 lore raw

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

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

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

memory: mtk-smi: fix device leak on larb probe

Make sure to drop the reference taken when looking up the SMI device during larb probe on late probe failure (e.g. probe deferral) and on driver unbind.

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

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

	Issue introduced in 4.6 with commit cc8bbe1a83128ad06457e4dc69907c4f9a6fc1a7 and fixed in 5.15.203 with commit 04057b86fdac3d4847913a97dc6552c0bff9b85e
	Issue introduced in 4.6 with commit cc8bbe1a83128ad06457e4dc69907c4f9a6fc1a7 and fixed in 6.1.167 with commit 357e16a7fc9c1fef2ea37dce9bb6b9bcb1d1687d
	Issue introduced in 4.6 with commit cc8bbe1a83128ad06457e4dc69907c4f9a6fc1a7 and fixed in 6.6.130 with commit b9eccd59697f7e1cb9a714501d9af826e7f7e073
	Issue introduced in 4.6 with commit cc8bbe1a83128ad06457e4dc69907c4f9a6fc1a7 and fixed in 6.12.77 with commit 1f23a48ff2b8ab47e514f7c84a4b1dbf9b848168
	Issue introduced in 4.6 with commit cc8bbe1a83128ad06457e4dc69907c4f9a6fc1a7 and fixed in 6.18.17 with commit f69535b77fa0518ad39870c00dd2995439ed5c34
	Issue introduced in 4.6 with commit cc8bbe1a83128ad06457e4dc69907c4f9a6fc1a7 and fixed in 6.19.6 with commit 1288bb394d464975cea18f69940f206e235e0fe7
	Issue introduced in 4.6 with commit cc8bbe1a83128ad06457e4dc69907c4f9a6fc1a7 and fixed in 7.0 with commit 9dae65913b32d05dbc8ff4b8a6bf04a0e49a8eb6

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

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/memory/mtk-smi.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/04057b86fdac3d4847913a97dc6552c0bff9b85e
	https://git.kernel.org/stable/c/357e16a7fc9c1fef2ea37dce9bb6b9bcb1d1687d
	https://git.kernel.org/stable/c/b9eccd59697f7e1cb9a714501d9af826e7f7e073
	https://git.kernel.org/stable/c/1f23a48ff2b8ab47e514f7c84a4b1dbf9b848168
	https://git.kernel.org/stable/c/f69535b77fa0518ad39870c00dd2995439ed5c34
	https://git.kernel.org/stable/c/1288bb394d464975cea18f69940f206e235e0fe7
	https://git.kernel.org/stable/c/9dae65913b32d05dbc8ff4b8a6bf04a0e49a8eb6