CVE-2023-53385: media: mdp3: Fix resource leaks in of_find_device_by_node
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: mdp3: Fix resource leaks in of_find_device_by_node
Use put_device to release the object get through of_find_device_by_node, avoiding resource leaks.
The Linux kernel CVE team has assigned CVE-2023-53385 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.55 with commit 8ba9d91c8f21f070af2049f114c206a8f2d5c71e Fixed in 6.5.5 with commit fa481125bc4ca8edc1a4c62fe53486ac9a817593 Fixed in 6.6 with commit 35ca8ce495366909b4c2e701d1356570dd40c4e2
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-2023-53385
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-comp.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/8ba9d91c8f21f070af2049f114c206a8f2d5c71e https://git.kernel.org/stable/c/fa481125bc4ca8edc1a4c62fe53486ac9a817593 https://git.kernel.org/stable/c/35ca8ce495366909b4c2e701d1356570dd40c4e2