commit | 1733fe42d94c70d5626854cace6db23674f24ca1 | [log] [tgz] |
---|---|---|
author | Oliver Neukum <oneukum@suse.com> | Wed Apr 15 16:03:04 2020 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu May 14 07:57:20 2020 +0200 |
tree | bf6dc8db9095afbde659044f0d3211da28cc8903 | |
parent | 9a05a6f1d2ee5dcdbba8e888098ff9bccae84879 [diff] |
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: Oliver Neukum <oneukum@suse.com> Reported-and-tested-by: syzbot+d29e9263e13ce0b9f4fd@syzkaller.appspotmail.com Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable <stable@vger.kernel.org> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>