CVE-2025-71288: memory: mtk-smi: fix device leaks on common probe
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
memory: mtk-smi: fix device leaks on common probe
Make sure to drop the reference taken when looking up the SMI device during common probe on late probe failure (e.g. probe deferral) and on driver unbind.
The Linux kernel CVE team has assigned CVE-2025-71288 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit 47404757702ec8aa5c8310cdf58a267081f0ce6c and fixed in 6.1.167 with commit b8b2cf42b94c0a8efe43279643935256a6f58b9f Issue introduced in 5.16 with commit 47404757702ec8aa5c8310cdf58a267081f0ce6c and fixed in 6.6.130 with commit b16599fedf49fd42d174fba342a0b56103df3169 Issue introduced in 5.16 with commit 47404757702ec8aa5c8310cdf58a267081f0ce6c and fixed in 6.12.77 with commit 984992f31cfb71b25cd0a72ef51ceb5dd6f187e8 Issue introduced in 5.16 with commit 47404757702ec8aa5c8310cdf58a267081f0ce6c and fixed in 6.18.17 with commit b44d090d6ca159d94b59ad4cc44ffdaca094df82 Issue introduced in 5.16 with commit 47404757702ec8aa5c8310cdf58a267081f0ce6c and fixed in 6.19.6 with commit 9704564a70399c2787f5a7c5d347add721056e9d Issue introduced in 5.16 with commit 47404757702ec8aa5c8310cdf58a267081f0ce6c and fixed in 7.0 with commit 6cfa038bddd710f544076ea2ef7792fc82fbedd6
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-71288
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/b8b2cf42b94c0a8efe43279643935256a6f58b9f https://git.kernel.org/stable/c/b16599fedf49fd42d174fba342a0b56103df3169 https://git.kernel.org/stable/c/984992f31cfb71b25cd0a72ef51ceb5dd6f187e8 https://git.kernel.org/stable/c/b44d090d6ca159d94b59ad4cc44ffdaca094df82 https://git.kernel.org/stable/c/9704564a70399c2787f5a7c5d347add721056e9d https://git.kernel.org/stable/c/6cfa038bddd710f544076ea2ef7792fc82fbedd6