Commit c8d0aa6
committed
media: technisat-usb2: break out of loop at end of buffer
jira VULN-20
cve CVE-2019-15505
commit-author Sean Young <sean@mess.org>
commit 0c4df39
Ensure we do not access the buffer beyond the end if no 0xff byte
is encountered.
Reported-by: syzbot+eaaaf38a95427be88f4b@syzkaller.appspotmail.com
Signed-off-by: Sean Young <sean@mess.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
(cherry picked from commit 0c4df39)
Signed-off-by: Pratham Patel <ppatel@ciq.com>1 parent bc5dc0c commit c8d0aa6
1 file changed
+10
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | 611 | | |
| 612 | + | |
| 613 | + | |
615 | 614 | | |
616 | 615 | | |
617 | 616 | | |
| |||
647 | 646 | | |
648 | 647 | | |
649 | 648 | | |
650 | | - | |
651 | 649 | | |
652 | 650 | | |
653 | 651 | | |
654 | | - | |
| 652 | + | |
655 | 653 | | |
656 | 654 | | |
657 | 655 | | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
| 656 | + | |
| 657 | + | |
665 | 658 | | |
666 | 659 | | |
667 | 660 | | |
668 | 661 | | |
669 | 662 | | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
670 | 668 | | |
671 | 669 | | |
672 | 670 | | |
| |||
0 commit comments