linux/drivers/media/platform
Wei Chen 48e4e06e2c media: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup
[ Upstream commit 8fbcf730cb ]

variable *nplanes is provided by user via system call argument. The
possible value of q_data->fmt->num_planes is 1-3, while the value
of *nplanes can be 1-8. The array access by index i can cause array
out-of-bounds.

Fix this bug by checking *nplanes against the array size.

Signed-off-by: Wei Chen <harperchen1110@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:36 +01:00
..
allegro-dvt
amlogic
amphion media: amphion: decoder implement display delay enable 2023-05-11 23:03:10 +09:00
aspeed
atmel
cadence
chips-media media: coda: Add check for kmalloc 2022-12-31 13:32:25 +01:00
intel
marvell
mediatek media: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup 2023-05-24 17:32:36 +01:00
nvidia
nxp media: imx-jpeg: Apply clk_bulk api instead of operating specific clk 2023-03-10 09:33:43 +01:00
qcom media: venus: dec: Fix capture formats enumeration order 2023-05-11 23:03:15 +09:00
renesas media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:32:36 +01:00
rockchip
samsung media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:32:36 +01:00
st media: bdisp: Add missing check for create_workqueue 2023-05-11 23:03:10 +09:00
sunxi media: sun8i-a83t-mipi-csi2: Register async subdev with no sensor attached 2022-12-31 13:32:17 +01:00
ti media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:32:36 +01:00
verisilicon media: hantro: Fix JPEG encoder ENUM_FRMSIZE on RK3399 2023-03-10 09:33:43 +01:00
via
xilinx
Kconfig
m2m-deinterlace.c
Makefile
video-mux.c