Skip to content
Commit 332f989a authored by Oliver Neukum's avatar Oliver Neukum Committed by David S. Miller
Browse files

CDC-NCM: handle incomplete transfer of MTU



A malicious device may give half an answer when asked
for its MTU. The driver will proceed after this with
a garbage MTU. Anything but a complete answer must be treated
as an error.

V2: used sizeof as request by Alexander

Reported-and-tested-by: default avatar <syzbot+0631d878823ce2411636@syzkaller.appspotmail.com>
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 025ec40b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment