KernelScan.io

HIGH

media mtk-mdp VPU Deref

CVE-2026-43207

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI4.4MEDIUM

01

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.

02

Engine v0.2.0

Risk summary

Users with root privileges can trigger a NULL pointer dereference in the MediaTek MDP driver during device probe, causing a kernel panic and system crash. This affects systems with MediaTek MT8173 SoCs that have the MDP (Media Data Path) hardware acceleration enabled.

Affecteddrivers/media/platform/mediatek/mdp/mtk_mdp_core.c (media subsystem)

Vulnerability analysis

The vulnerability occurs in the mtk_mdp_probe() function where vpu_get_plat_device() can return NULL, but the code proceeds to use the returned pointer without validation. The original code also has resource leaks in error paths - it fails to call mtk_mdp_unregister_m2m_device() and platform_device_put() when errors occur after successful resource allocation. The fix adds proper NULL checking for the VPU device pointer and implements correct error handling with proper resource cleanup using goto labels to unwind allocations in reverse order. The probe function is only called during driver initialization, which requires root privileges (module loading or device tree manipulation).

03

BranchFixed inPatch commit
5.105.10.2529d9c67976eda
5.155.15.2020bc43eaf0213
6.16.1.1659d7962d5c81d
6.126.12.75c8737d33d4e8
6.186.18.16b3fc99fe5b25
6.196.19.62e8f53a73829
6.66.6.12812cafc15d246
mainline7.08a8a3232abac