diff options
Diffstat (limited to 'staging-gigaset-fix-general-protection-fault-on-probe.patch')
-rw-r--r-- | staging-gigaset-fix-general-protection-fault-on-probe.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/staging-gigaset-fix-general-protection-fault-on-probe.patch b/staging-gigaset-fix-general-protection-fault-on-probe.patch deleted file mode 100644 index a83e87d..0000000 --- a/staging-gigaset-fix-general-protection-fault-on-probe.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 53f35a39c3860baac1e5ca80bf052751cfb24a99 Mon Sep 17 00:00:00 2001 -From: Johan Hovold <johan@kernel.org> -Date: Mon, 2 Dec 2019 09:56:08 +0100 -Subject: staging: gigaset: fix general protection fault on probe - -From: Johan Hovold <johan@kernel.org> - -commit 53f35a39c3860baac1e5ca80bf052751cfb24a99 upstream. - -Fix a general protection fault when accessing the endpoint descriptors -which could be triggered by a malicious device due to missing sanity -checks on the number of endpoints. - -Reported-by: syzbot+35b1c403a14f5c89eba7@syzkaller.appspotmail.com -Fixes: 07dc1f9f2f80 ("[PATCH] isdn4linux: Siemens Gigaset drivers - M105 USB DECT adapter") -Cc: stable <stable@vger.kernel.org> # 2.6.17 -Cc: Hansjoerg Lipp <hjlipp@web.de> -Cc: Tilman Schmidt <tilman@imap.cc> -Signed-off-by: Johan Hovold <johan@kernel.org> -Link: https://lore.kernel.org/r/20191202085610.12719-2-johan@kernel.org -Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> - ---- - drivers/isdn/gigaset/usb-gigaset.c | 5 +++++ - 1 file changed, 5 insertions(+) - ---- a/drivers/isdn/gigaset/usb-gigaset.c -+++ b/drivers/isdn/gigaset/usb-gigaset.c -@@ -693,6 +693,11 @@ static int gigaset_probe(struct usb_inte - return -ENODEV; - } - -+ if (hostif->desc.bNumEndpoints < 2) { -+ dev_err(&interface->dev, "missing endpoints\n"); -+ return -ENODEV; -+ } -+ - dev_info(&udev->dev, "%s: Device matched ... !\n", __func__); - - /* allocate memory for our device state and initialize it */ |