1
0
Fork 0
remarkable-linux/drivers/media/usb
Jozef Balga 88be243901 media: af9035: prevent buffer overflow on write
[ Upstream commit 312f73b648 ]

When less than 3 bytes are written to the device, memcpy is called with
negative array size which leads to buffer overflow and kernel panic. This
patch adds a condition and returns -EOPNOTSUPP instead.
Fixes bugzilla issue 64871

[mchehab+samsung@kernel.org: fix a merge conflict and changed the
 condition to match the patch's comment, e. g. len == 3 could
 also be valid]
Signed-off-by: Jozef Balga <jozef.balga@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-20 09:48:47 +02:00
..
airspy media: usb: make video_device const 2017-08-27 08:45:32 -04:00
as102 media: Don't do DMA on stack for firmware upload in the AS102 driver 2017-11-30 08:40:57 +00:00
au0828 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
b2c2 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cpia2 media: cpia2: Fix a couple off by one bugs 2018-03-19 08:42:54 +01:00
cx231xx media: cx231xx: Add support for AverMedia DVD EZMaker 7 2018-07-03 11:25:02 +02:00
dvb-usb media: dw2102: Fix memleak on sequence of probes 2018-09-19 22:43:39 +02:00
dvb-usb-v2 media: af9035: prevent buffer overflow on write 2018-10-20 09:48:47 +02:00
em28xx media: em28xx: Add Hauppauge SoloHD/DualHD bulk models 2018-05-25 16:17:57 +02:00
go7007 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gspca License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hackrf media: usb: make video_device const 2017-08-27 08:45:32 -04:00
hdpvr media: hdpvr: Fix an error handling path in hdpvr_probe() 2018-02-16 20:22:45 +01:00
msi2500 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
pulse8-cec media: usb: pulse8-cec: constify serio_device_id 2017-08-20 08:27:13 -04:00
pvrusb2 media: pvrusb2: properly check endpoint types 2018-02-25 11:07:49 +01:00
pwc License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rainshadow-cec media: usb: rainshadow-cec: constify serio_device_id 2017-08-20 08:27:29 -04:00
s2255 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
siano [media] siano: make it work again with CONFIG_VMAP_STACK 2017-02-14 18:13:49 -02:00
stk1160 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stkwebcam media: usb: make video_device const 2017-08-27 08:45:32 -04:00
tm6000 media: tm6000: add error handling for dvb_register_adapter 2018-10-03 17:00:51 -07:00
ttusb-budget media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
ttusb-dec media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
usbtv media: usbtv: prevent double free in error case 2018-04-08 14:26:31 +02:00
usbvision License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
uvc media: uvcvideo: Support realtek's UVC 1.5 device 2018-10-03 17:00:55 -07:00
zr364xx media: usb: make video_device const 2017-08-27 08:45:32 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00