]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: gigaset: fix general protection fault on probe
authorJohan Hovold <johan@kernel.org>
Mon, 2 Dec 2019 08:56:08 +0000 (09:56 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:33 +0000 (14:22 -0300)
commit978b7e447d3f9e8c518baf26a185f25f559a14aa
tree2878a895bdad160766c881b1729dfd6023bfe6aa
parent295ad80b3671bb0a6f0e5918464cdbe78dc5127c
staging: gigaset: fix general protection fault on probe

BugLink: https://bugs.launchpad.net/bugs/1857158
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/isdn/gigaset/usb-gigaset.c