blob: e19aaa321478023e516b6aef930a16539e6ced11 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2024-40973: media: mtk-vcodec: potential null pointer deference in SCP
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: mtk-vcodec: potential null pointer deference in SCP
The return value of devm_kzalloc() needs to be checked to avoid
NULL pointer deference. This is similar to CVE-2022-3113.
The Linux kernel CVE team has assigned CVE-2024-40973 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.10 with commit 590577a4e5257ac3ed72999a94666ad6ba8f24bc and fixed in 6.1.130 with commit eeb62bb4ca22db17f7dfe8fb8472e0442df3d92f
Issue introduced in 4.10 with commit 590577a4e5257ac3ed72999a94666ad6ba8f24bc and fixed in 6.6.36 with commit f066882293b5ad359e44c4ed24ab1811ffb0b354
Issue introduced in 4.10 with commit 590577a4e5257ac3ed72999a94666ad6ba8f24bc and fixed in 6.9.7 with commit 3a693c7e243b932faee5c1fb728efa73f0abc39b
Issue introduced in 4.10 with commit 590577a4e5257ac3ed72999a94666ad6ba8f24bc and fixed in 6.10 with commit 53dbe08504442dc7ba4865c09b3bbf5fe849681b
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-2024-40973
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/vcodec/common/mtk_vcodec_fw_scp.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/eeb62bb4ca22db17f7dfe8fb8472e0442df3d92f
https://git.kernel.org/stable/c/f066882293b5ad359e44c4ed24ab1811ffb0b354
https://git.kernel.org/stable/c/3a693c7e243b932faee5c1fb728efa73f0abc39b
https://git.kernel.org/stable/c/53dbe08504442dc7ba4865c09b3bbf5fe849681b