media: mtk-mdp: Fix error handling in probe function
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a · < b3fc99fe5b25613dd61c57bc70b8479adff4f60d| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s mtk-mdp probe function fails to check whether vpu_get_plat_device() returns a null pointer. A null return can lead to a null pointer dereference; probe errors can also leak resources or references. The input does not establish how an attacker could trigger these conditions or whether authentication or user interaction is required.
Engineers running Linux kernels with the mtk-mdp media component should check their kernel versions; affected versions are not specified.