linux/drivers/media
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
..
cec media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
common media: videobuf2-core: take mmap_lock in vb2_get_unmapped_area() 2022-12-07 11:25:40 -08:00
dvb-core media: dvb-core: Fix UAF due to refcount races at releasing 2023-01-07 11:11:49 +01:00
dvb-frontends media: stv0288: use explicitly signed char 2023-01-07 11:11:36 +01:00
firewire
i2c media: hi846: Fix memleak in hi846_init_controls() 2023-05-11 23:03:15 +09:00
mc media: mc: Get media_device directly from pad 2023-03-10 09:33:42 +01:00
mmc
pci media: pci: tw68: Fix null-ptr-deref bug in buf prepare and finish 2023-05-24 17:32:34 +01:00
platform media: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup 2023-05-24 17:32:36 +01:00
radio media: si470x: Fix use-after-free in si470x_int_in_callback() 2022-12-31 13:33:04 +01:00
rc media: rc: gpio-ir-recv: Fix support for wake-up 2023-05-11 23:03:15 +09:00
spi
test-drivers media: vimc: Fix wrong function called when vimc_init() fails 2022-12-31 13:32:16 +01:00
tuners media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
usb media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:32:36 +01:00
v4l2-core media: v4l: async: Return async sub-devices to subnotifier list 2023-05-11 23:03:15 +09:00
Kconfig
Makefile