]> git.baikalelectronics.ru Git - kernel.git/commit
USB: CDC: fix sanity checks in CDC union parser
authorOliver Neukum <oneukum@suse.com>
Tue, 13 Aug 2019 09:35:41 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2019 12:49:16 +0000 (14:49 +0200)
commitcc24e133424d654586e1952623fa64403ac0d447
treed066871efff3b5af963d90e59369dbd76f53219f
parentf2c8891b2c29ebc2b934de0d4ce52f1ee11a04d9
USB: CDC: fix sanity checks in CDC union parser

A few checks checked for the size of the pointer to a structure
instead of the structure itself. Copy & paste issue presumably.

Fixes: 8d87451e347fc ("usbnet: move the CDC parser into USB core")
Cc: stable <stable@vger.kernel.org>
Reported-by: syzbot+45a53506b65321c1fe91@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20190813093541.18889-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/message.c