CVE-2026-43207: media: mtk-mdp: Fix error handling in probe function
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: mtk-mdp: Fix error handling in probe function
Add mtk_mdp_unregister_m2m_device() on the error handling path to prevent resource leak.
Add check for the return value of vpu_get_plat_device() to prevent null pointer dereference. And vpu_get_plat_device() increases the reference count of the returned platform device. Add platform_device_put() to prevent reference leak.
The Linux kernel CVE team has assigned CVE-2026-43207 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.10 with commit c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a and fixed in 5.10.252 with commit 9d9c67976eda502edc6b3a148a1c5b6a18b69a98 Issue introduced in 4.10 with commit c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a and fixed in 5.15.202 with commit 0bc43eaf021347f8d5aba87712c36b799695eec6 Issue introduced in 4.10 with commit c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a and fixed in 6.1.165 with commit 9d7962d5c81d6cf3f8dbdb5c71c57600bac5772b Issue introduced in 4.10 with commit c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a and fixed in 6.6.128 with commit 12cafc15d24611bfb43c82877b1bbb7454a85d5a Issue introduced in 4.10 with commit c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a and fixed in 6.12.75 with commit c8737d33d4e8ffae87e5d5edac17f8a705235cc2 Issue introduced in 4.10 with commit c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a and fixed in 6.18.16 with commit b3fc99fe5b25613dd61c57bc70b8479adff4f60d Issue introduced in 4.10 with commit c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a and fixed in 6.19.6 with commit 2e8f53a7382943411557e370f1a4f3946624a30e Issue introduced in 4.10 with commit c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a and fixed in 7.0 with commit 8a8a3232abac5b972058a5f2cb3e33199d2a8648
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-43207
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/mdp/mtk_mdp_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/9d9c67976eda502edc6b3a148a1c5b6a18b69a98 https://git.kernel.org/stable/c/0bc43eaf021347f8d5aba87712c36b799695eec6 https://git.kernel.org/stable/c/9d7962d5c81d6cf3f8dbdb5c71c57600bac5772b https://git.kernel.org/stable/c/12cafc15d24611bfb43c82877b1bbb7454a85d5a https://git.kernel.org/stable/c/c8737d33d4e8ffae87e5d5edac17f8a705235cc2 https://git.kernel.org/stable/c/b3fc99fe5b25613dd61c57bc70b8479adff4f60d https://git.kernel.org/stable/c/2e8f53a7382943411557e370f1a4f3946624a30e https://git.kernel.org/stable/c/8a8a3232abac5b972058a5f2cb3e33199d2a8648