OSDN Git Service

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>
Sun, 25 Aug 2019 08:51:49 +0000 (10:51 +0200)
commit911a8ca7697b26e95b7ec30b94cd5910bee546ff
tree70fac1fab63b80656daad508d978e783fe3a11d6
parentfccd6134d5addf2be1407e3250efdc854b5c5d8a
USB: CDC: fix sanity checks in CDC union parser

commit 54364278fb3cabdea51d6398b07c87415065b3fc upstream.

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

Fixes: e4c6fb7794982 ("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