[linux] 01/02: media: cx231xx-cards: fix NULL-deref on missing association descriptor (CVE-2017-16536)
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Sat Dec 2 14:48:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
carnil pushed a commit to branch stretch
in repository linux.
commit d3425f784e35ffb448059a4f12b627b13dceb0d7
Author: Salvatore Bonaccorso <carnil at debian.org>
Date: Sat Dec 2 14:13:30 2017 +0100
media: cx231xx-cards: fix NULL-deref on missing association descriptor (CVE-2017-16536)
---
debian/changelog | 4 +++
...xx-cards-fix-NULL-deref-on-missing-associ.patch | 39 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 44 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2e90ce1..8f5c87e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -733,6 +733,10 @@ linux (4.9.65-1) UNRELEASED; urgency=medium
* [x86] mmap: Add an exception to the stack gap for Hotspot JVM compatibility
(Closes: #865303)
+ [ Salvatore Bonaccorso ]
+ * media: cx231xx-cards: fix NULL-deref on missing association descriptor
+ (CVE-2017-16536)
+
-- Ben Hutchings <ben at decadent.org.uk> Sun, 01 Oct 2017 16:14:43 +0100
linux (4.9.51-1) stretch; urgency=medium
diff --git a/debian/patches/bugfix/all/media-cx231xx-cards-fix-NULL-deref-on-missing-associ.patch b/debian/patches/bugfix/all/media-cx231xx-cards-fix-NULL-deref-on-missing-associ.patch
new file mode 100644
index 0000000..ecdca2a
--- /dev/null
+++ b/debian/patches/bugfix/all/media-cx231xx-cards-fix-NULL-deref-on-missing-associ.patch
@@ -0,0 +1,39 @@
+From: Johan Hovold <johan at kernel.org>
+Date: Thu, 21 Sep 2017 05:40:18 -0300
+Subject: [media] cx231xx-cards: fix NULL-deref on missing association
+ descriptor
+Origin: https://git.kernel.org/linus/6c3b047fa2d2286d5e438bcb470c7b1a49f415f6
+Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2017-16536
+
+Make sure to check that we actually have an Interface Association
+Descriptor before dereferencing it during probe to avoid dereferencing a
+NULL-pointer.
+
+Fixes: e0d3bafd0258 ("V4L/DVB (10954): Add cx231xx USB driver")
+
+Cc: stable <stable at vger.kernel.org> # 2.6.30
+Reported-by: Andrey Konovalov <andreyknvl at google.com>
+Signed-off-by: Johan Hovold <johan at kernel.org>
+Tested-by: Andrey Konovalov <andreyknvl at google.com>
+Signed-off-by: Hans Verkuil <hans.verkuil at cisco.com>
+Signed-off-by: Mauro Carvalho Chehab <mchehab at osg.samsung.com>
+---
+ drivers/media/usb/cx231xx/cx231xx-cards.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c
+index e0daa9b6c2a0..9b742d569fb5 100644
+--- a/drivers/media/usb/cx231xx/cx231xx-cards.c
++++ b/drivers/media/usb/cx231xx/cx231xx-cards.c
+@@ -1684,7 +1684,7 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
+ nr = dev->devno;
+
+ assoc_desc = udev->actconfig->intf_assoc[0];
+- if (assoc_desc->bFirstInterface != ifnum) {
++ if (!assoc_desc || assoc_desc->bFirstInterface != ifnum) {
+ dev_err(d, "Not found matching IAD interface\n");
+ retval = -ENODEV;
+ goto err_if;
+--
+2.11.0
+
diff --git a/debian/patches/series b/debian/patches/series
index 6309980..ef8bd55 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -134,6 +134,7 @@ features/all/securelevel/arm64-add-kernel-config-option-to-set-securelevel-wh.pa
debian/i386-686-pae-pci-set-pci-nobios-by-default.patch
debian/time-mark-timer_stats-as-broken.patch
bugfix/all/tracing-Use-strlcpy-instead-of-strcpy-in-__trace_fin.patch
+bugfix/all/media-cx231xx-cards-fix-NULL-deref-on-missing-associ.patch
# Fix exported symbol versions
bugfix/ia64/revert-ia64-move-exports-to-definitions.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