]> git.baikalelectronics.ru Git - kernel.git/commit
ISDN: hfcsusb: checking idx of ep configuration
authorPhong Tran <tranmanphong@gmail.com>
Mon, 15 Jul 2019 15:08:14 +0000 (22:08 +0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jul 2019 18:10:31 +0000 (11:10 -0700)
commite4c0980b1481d240b167ebc660cf4995cf65f8d0
treed9711a2d759695612b76bdc4c2ae2ace671fd31c
parent125f0d4e24f61ba5b3090a2c8474acdfc330c6b3
ISDN: hfcsusb: checking idx of ep configuration

The syzbot test with random endpoint address which made the idx is
overflow in the table of endpoint configuations.

this adds the checking for fixing the error report from
syzbot

KASAN: stack-out-of-bounds Read in hfcsusb_probe [1]
The patch tested by syzbot [2]

Reported-by: syzbot+8750abbc3a46ef47d509@syzkaller.appspotmail.com
[1]:
https://syzkaller.appspot.com/bug?id=30a04378dac680c5d521304a00a86156bb913522
[2]:
https://groups.google.com/d/msg/syzkaller-bugs/_6HBdge8F3E/OJn7wVNpBAAJ

Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/hfcsusb.c