linux/drivers/media
Ralph Loader fe6c700ff3 V4L/DVB (9053): fix buffer overflow in uvc-video
There is a buffer overflow in drivers/media/video/uvc/uvc_ctrl.c:

INFO: 0xf2c5ce08-0xf2c5ce0b. First byte 0xa1 instead of 0xcc
INFO: Allocated in uvc_query_v4l2_ctrl+0x3c/0x239 [uvcvideo] age=13 cpu=1 pid=4975
...

A fixed size 8-byte buffer is allocated, and a variable size field is read
into it; there is no particular bound on the size of the field (it is
dependent on hardware and configuration) and it can overflow [also
verified by inserting printk's.]

The patch attempts to size the buffer to the correctly.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-04 23:04:32 -03:00
..
common V4L/DVB (8967): Use correct XC3028L firmware for AMD ATI TV Wonder 600 2008-10-04 22:43:41 -03:00
dvb V4L/DVB (9043): S5H1420: Fix size of shadow-array to avoid overflow 2008-10-04 23:01:21 -03:00
radio V4L/DVB (8778): radio: fix incorrect video_register_device result check 2008-09-03 18:37:16 -03:00
video V4L/DVB (9053): fix buffer overflow in uvc-video 2008-10-04 23:04:32 -03:00
Kconfig V4L/DVB (8392): media/Kconfig: Convert V4L1_COMPAT select into "depends on" 2008-07-20 07:28:49 -03:00
Makefile V4L/DVB (8274): sms1xxx: build cleanup after driver relocation 2008-07-20 07:20:56 -03:00