Skip to contentSkip to conversation

CVE-2026-89885: media: platform: mtk-mdp3: Fix SCP device refcounting

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

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

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

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

media: platform: mtk-mdp3: Fix SCP device refcounting

mdp_probe() first tries to get the SCP handle with scp_get(). When that fails, it falls back to looking up the SCP platform device with __get_pdev_by_id() and then reads its driver data.

The fallback lookup returns the platform device with a reference, just like scp_get() does. However, the fallback path currently drops that reference immediately after platform_get_drvdata(). The driver later still calls scp_put(mdp->scp) unconditionally from the probe error path and from mdp_video_device_release(), which drops the SCP device reference again.

Keep the fallback reference until the existing scp_put() call, so that the fallback path follows the same ownership rules as the scp_get() path.

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

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

	Issue introduced in 6.12.64 with commit db4d27e6bbbf511f9cdb33f682535a0a3cb7c403 and fixed in 6.12.110 with commit dce13bd9bade3ecc1acb7579397f24743850997f
	Issue introduced in 6.18.4 with commit 31ba1a4d7a5d9466f6ef4910a372b8200f8aad19 and fixed in 6.18.51 with commit 252850653569fdb1a259937e02325cf32c8f0970
	Issue introduced in 6.19 with commit 8f6f3aa21517ef34d50808af0c572e69580dca20 and fixed in 7.2.5 with commit 0259ade4c4ceaf1e184a7c1aea8071ad398f9b6f
	Issue introduced in 6.19 with commit 8f6f3aa21517ef34d50808af0c572e69580dca20 and fixed in 7.3-rc1 with commit 55793e4665b7f15151e6f5ab51ca980e73abed5d

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

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/media/platform/mediatek/mdp3/mtk-mdp3-core.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/dce13bd9bade3ecc1acb7579397f24743850997f
	https://git.kernel.org/stable/c/252850653569fdb1a259937e02325cf32c8f0970
	https://git.kernel.org/stable/c/0259ade4c4ceaf1e184a7c1aea8071ad398f9b6f
	https://git.kernel.org/stable/c/55793e4665b7f15151e6f5ab51ca980e73abed5d