]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: mtk-vcodec: potential null pointer deference in SCP
authorFullway Wang <fullwaywang@outlook.com>
Thu, 18 Jan 2024 02:35:06 +0000 (02:35 +0000)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:12 +0000 (16:27 +0200)
commit845efbb5d2048adf38331068a27094ce75c3cfa4
treee1cef6decfd3d27eeb8094832fd62dd94b794f06
parente9b756f22dca24a352504c5f3ea2b08783ec5976
media: mtk-vcodec: potential null pointer deference in SCP

BugLink: https://bugs.launchpad.net/bugs/2075154
[ Upstream commit 53dbe08504442dc7ba4865c09b3bbf5fe849681b ]

The return value of devm_kzalloc() needs to be checked to avoid
NULL pointer deference. This is similar to CVE-2022-3113.

Link: https://lore.kernel.org/linux-media/PH7PR20MB5925094DAE3FD750C7E39E01BF712@PH7PR20MB5925.namprd20.prod.outlook.com
Signed-off-by: Fullway Wang <fullwaywang@outlook.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_scp.c