Skip to content
Commit f96fb229 authored by Oliver Neukum's avatar Oliver Neukum Committed by bgman111111
Browse files

USB: serial: garmin_gps: add sanity checking for data length



commit e9b3c610a05c1cdf8e959a6d89c38807ff758ee6 upstream.

We must not process packets shorter than a packet ID

Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Reported-and-tested-by: default avatar <syzbot+d29e9263e13ce0b9f4fd@syzkaller.appspotmail.com>
Fixes: 1da177e4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 70d06e1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment