Skip to contentSkip to conversation

CVE-2023-53425: media: platform: mediatek: vpu: fix NULL ptr dereference

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 18, 2025

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: mediatek: vpu: fix NULL ptr dereference

If pdev is NULL, then it is still dereferenced.

This fixes this smatch warning:

drivers/media/platform/mediatek/vpu/mtk_vpu.c:570 vpu_load_firmware() warn: address of NULL pointer 'pdev'

The Linux kernel CVE team has assigned CVE-2023-53425 to this issue.

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

	Fixed in 4.14.324 with commit 099e929e7477f37ca16738fc158d7101c0189ca1
	Fixed in 4.19.293 with commit 1b3f25d3894a091abc247eadab266a2c9be64389
	Fixed in 5.4.255 with commit c1c5826223ae05a48d21f6708c6f34ee9006238c
	Fixed in 5.10.192 with commit 2caeb722f0ea5d2d24af30bb1753a89d449b6aa0
	Fixed in 5.15.128 with commit 776b34615a29551d69d82a0082e7319d5ea284bd
	Fixed in 6.1.47 with commit b7bd48f0be84e24d21aa3a8f59a8a9cb8633a1c4
	Fixed in 6.4.12 with commit 4d299e6e0ac3cf8ab4517dc29c9294bc4bf72398
	Fixed in 6.5 with commit 3df55cd773e8603b623425cc97b05e542854ad27

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

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/vpu/mtk_vpu.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/099e929e7477f37ca16738fc158d7101c0189ca1
	https://git.kernel.org/stable/c/1b3f25d3894a091abc247eadab266a2c9be64389
	https://git.kernel.org/stable/c/c1c5826223ae05a48d21f6708c6f34ee9006238c
	https://git.kernel.org/stable/c/2caeb722f0ea5d2d24af30bb1753a89d449b6aa0
	https://git.kernel.org/stable/c/776b34615a29551d69d82a0082e7319d5ea284bd
	https://git.kernel.org/stable/c/b7bd48f0be84e24d21aa3a8f59a8a9cb8633a1c4
	https://git.kernel.org/stable/c/4d299e6e0ac3cf8ab4517dc29c9294bc4bf72398
	https://git.kernel.org/stable/c/3df55cd773e8603b623425cc97b05e542854ad27