[linux] 01/02: usbvision: fix overflow of interfaces array (CVE-2015-7833)

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun Nov 8 14:24:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch squeeze-security
in repository linux.

commit c881a6762c1d50523afa730883fd74c5fdc6793b
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sun Nov 8 13:43:51 2015 +0000

    usbvision: fix overflow of interfaces array (CVE-2015-7833)
---
 debian/changelog                                   |  6 +++++
 ...sbvision-fix-overflow-of-interfaces-array.patch | 31 ++++++++++++++++++++++
 debian/patches/series/48squeeze17                  |  1 +
 3 files changed, 38 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0862bed..dc74ee4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+linux-2.6 (2.6.32-48squeeze17) UNRELEASED; urgency=medium
+
+  * usbvision: fix overflow of interfaces array (CVE-2015-7833)
+
+ -- Ben Hutchings <ben at decadent.org.uk>  Sun, 08 Nov 2015 13:41:21 +0000
+
 linux-2.6 (2.6.32-48squeeze16) squeeze-lts; urgency=medium
 
   * [vserver] vfs: Fix missing return value in follow_dotdot() after fix for
diff --git a/debian/patches/bugfix/all/usbvision-fix-overflow-of-interfaces-array.patch b/debian/patches/bugfix/all/usbvision-fix-overflow-of-interfaces-array.patch
new file mode 100644
index 0000000..dadd518
--- /dev/null
+++ b/debian/patches/bugfix/all/usbvision-fix-overflow-of-interfaces-array.patch
@@ -0,0 +1,31 @@
+From: Oliver Neukum <oneukum at suse.com>
+Date: Tue, 27 Oct 2015 12:42:38 +0100
+Subject: usbvision fix overflow of interfaces array
+Origin: https://bugzilla.novell.com/attachment.cgi?id=653350
+
+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 at suse.com>
+[bwh: Backported to 2.6.32: adjust filename, context]
+---
+ drivers/media/video/usbvision/usbvision-video.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+--- a/drivers/media/video/usbvision/usbvision-video.c
++++ b/drivers/media/video/usbvision/usbvision-video.c
+@@ -1651,6 +1651,13 @@ static int usbvision_probe(struct usb_interface *intf,
+ 	printk(KERN_INFO "%s: %s found\n", __func__,
+ 				usbvision_device_data[model].ModelString);
+ 
++	/*
++	 * 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 {
diff --git a/debian/patches/series/48squeeze17 b/debian/patches/series/48squeeze17
new file mode 100644
index 0000000..537c133
--- /dev/null
+++ b/debian/patches/series/48squeeze17
@@ -0,0 +1 @@
++ bugfix/all/usbvision-fix-overflow-of-interfaces-array.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list