Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1414217 > unrolled thread
| Started by | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| First post | 2016-06-05 23:50 +0200 |
| Last post | 2016-06-08 02:30 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 4.4 63/99] [media] usbvision fix overflow of interfaces array Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-06-05 23:50 +0200
Re: [PATCH 4.4 63/99] [media] usbvision fix overflow of interfaces array Holger Hoffstätte <holger@applied-asynchrony.com> - 2016-06-06 00:40 +0200
Re: [PATCH 4.4 63/99] [media] usbvision fix overflow of interfaces array Greg KH <greg@kroah.com> - 2016-06-08 02:30 +0200
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2016-06-05 23:50 +0200 |
| Subject | [PATCH 4.4 63/99] [media] usbvision fix overflow of interfaces array |
| Message-ID | <rGO5I-3HY-15@gated-at.bofh.it> |
4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Oliver Neukum <oneukum@suse.com> commit 588afcc1c0e45358159090d95bf7b246fb67565f upstream. This fixes the crash reported in: http://seclists.org/bugtraq/2015/Oct/35 The interface number needs a sanity check. Signed-off-by: Oliver Neukum <oneukum@suse.com> Cc: Vladis Dronov <vdronov@redhat.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: Moritz Muehlenhoff <moritz@wikimedia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- drivers/media/usb/usbvision/usbvision-video.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/media/usb/usbvision/usbvision-video.c +++ b/drivers/media/usb/usbvision/usbvision-video.c @@ -1461,6 +1461,13 @@ static int usbvision_probe(struct usb_in printk(KERN_INFO "%s: %s found\n", __func__, usbvision_device_data[model].model_string); + /* + * this is a security check. + * an exploit using an incorrect bInterfaceNumber is known + */ + if (ifnum >= USB_MAXINTERFACES || !dev->actconfig->interface[ifnum]) + return -ENODEV; + if (usbvision_device_data[model].interface >= 0) interface = &dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0]; else if (ifnum < dev->actconfig->desc.bNumInterfaces)
[toc] | [next] | [standalone]
| From | Holger Hoffstätte <holger@applied-asynchrony.com> |
|---|---|
| Date | 2016-06-06 00:40 +0200 |
| Subject | Re: [PATCH 4.4 63/99] [media] usbvision fix overflow of interfaces array |
| Message-ID | <rGOS6-4hk-31@gated-at.bofh.it> |
| In reply to | #1414217 |
On Sun, 05 Jun 2016 14:41:36 -0700, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Oliver Neukum <oneukum@suse.com> > > commit 588afcc1c0e45358159090d95bf7b246fb67565f upstream. > > This fixes the crash reported in: > http://seclists.org/bugtraq/2015/Oct/35 > The interface number needs a sanity check. > > Signed-off-by: Oliver Neukum <oneukum@suse.com> > Cc: Vladis Dronov <vdronov@redhat.com> > Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> > Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> > Cc: Moritz Muehlenhoff <moritz@wikimedia.org> > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > > --- > drivers/media/usb/usbvision/usbvision-video.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > --- a/drivers/media/usb/usbvision/usbvision-video.c > +++ b/drivers/media/usb/usbvision/usbvision-video.c > @@ -1461,6 +1461,13 @@ static int usbvision_probe(struct usb_in > printk(KERN_INFO "%s: %s found\n", __func__, > usbvision_device_data[model].model_string); > > + /* > + * this is a security check. > + * an exploit using an incorrect bInterfaceNumber is known > + */ > + if (ifnum >= USB_MAXINTERFACES || !dev->actconfig->interface[ifnum]) > + return -ENODEV; > + > if (usbvision_device_data[model].interface >= 0) > interface = &dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0]; > else if (ifnum < dev->actconfig->desc.bNumInterfaces) Not sure if it matters, but heads up anyway that for some reason this patch is a duplicate and was previously applied quite some time ago: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.4.y&id=588afcc1c0e45358159090d95bf7b246fb67565f -h
[toc] | [prev] | [next] | [standalone]
| From | Greg KH <greg@kroah.com> |
|---|---|
| Date | 2016-06-08 02:30 +0200 |
| Subject | Re: [PATCH 4.4 63/99] [media] usbvision fix overflow of interfaces array |
| Message-ID | <rHzxD-1e6-1@gated-at.bofh.it> |
| In reply to | #1414418 |
On Sun, Jun 05, 2016 at 09:53:42PM +0000, Holger Hoffstätte wrote: > On Sun, 05 Jun 2016 14:41:36 -0700, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Oliver Neukum <oneukum@suse.com> > > > > commit 588afcc1c0e45358159090d95bf7b246fb67565f upstream. > > > > This fixes the crash reported in: > > http://seclists.org/bugtraq/2015/Oct/35 > > The interface number needs a sanity check. > > > > Signed-off-by: Oliver Neukum <oneukum@suse.com> > > Cc: Vladis Dronov <vdronov@redhat.com> > > Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> > > Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> > > Cc: Moritz Muehlenhoff <moritz@wikimedia.org> > > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > > > > --- > > drivers/media/usb/usbvision/usbvision-video.c | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > --- a/drivers/media/usb/usbvision/usbvision-video.c > > +++ b/drivers/media/usb/usbvision/usbvision-video.c > > @@ -1461,6 +1461,13 @@ static int usbvision_probe(struct usb_in > > printk(KERN_INFO "%s: %s found\n", __func__, > > usbvision_device_data[model].model_string); > > > > + /* > > + * this is a security check. > > + * an exploit using an incorrect bInterfaceNumber is known > > + */ > > + if (ifnum >= USB_MAXINTERFACES || !dev->actconfig->interface[ifnum]) > > + return -ENODEV; > > + > > if (usbvision_device_data[model].interface >= 0) > > interface = &dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0]; > > else if (ifnum < dev->actconfig->desc.bNumInterfaces) > > Not sure if it matters, but heads up anyway that for some reason this > patch is a duplicate and was previously applied quite some time ago: > > https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.4.y&id=588afcc1c0e45358159090d95bf7b246fb67565f Yes, thanks, sorry for the confusion, Debian seems confused as well as this is in their kernel tree too... now dropped, thanks. greg k-h
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web