[PATCH] net/bluetooth: Fix bound check in event handling

2019-03-04 Thread Tomas Bortoli
hci_inquiry_result_with_rssi_evt() can perform out of bound reads on skb->data as a bound check is missing. Signed-off-by: Tomas Bortoli Reported-by: syzbot+cec7a50c412a2c03f...@syzkaller.appspotmail.com Reported-by: syzbot+660883c56e2fa65d4...@syzkaller.appspotmail.com --- v2: - changed sizeof

Re: [PATCH] net/bluetooth: Fix bound check in event handling

2019-03-04 Thread Tomas Bortoli
Hi Dan, On 3/4/19 4:04 PM, Dan Carpenter wrote: > Hi Tomas, > > url: > https://github.com/0day-ci/linux/commits/Tomas-Bortoli/net-bluetooth-Fix-bound-check-in-event-handling/20190301-213647 > base: > https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git > master >

Re: [PATCH] net/bluetooth: Fix bound check in event handling

2019-03-04 Thread Dan Carpenter
Hi Tomas, url: https://github.com/0day-ci/linux/commits/Tomas-Bortoli/net-bluetooth-Fix-bound-check-in-event-handling/20190301-213647 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master smatch warnings: net/bluetooth/hci_event.c:3986 hci_inquiry_resul

Re: [PATCH] net/bluetooth: Fix bound check in event handling

2019-03-02 Thread Tomas Bortoli
Hi Marcel, On 3/2/19 5:46 PM, Marcel Holtmann wrote: > Hi Tomas, > >> hci_inquiry_result_with_rssi_evt() can perform out of bound reads >> on skb->data as a bound check is missing. >> >> Signed-off-by: Tomas Bortoli >> Reported-by: syzbot+cec7a50c412a2c03f...@syzkaller.appspotmail.com >> Reporte

Re: [PATCH] net/bluetooth: Fix bound check in event handling

2019-03-02 Thread Marcel Holtmann
Hi Tomas, > hci_inquiry_result_with_rssi_evt() can perform out of bound reads > on skb->data as a bound check is missing. > > Signed-off-by: Tomas Bortoli > Reported-by: syzbot+cec7a50c412a2c03f...@syzkaller.appspotmail.com > Reported-by: syzbot+660883c56e2fa65d4...@syzkaller.appspotmail.com > -

[PATCH] net/bluetooth: Fix bound check in event handling

2019-02-28 Thread Tomas Bortoli
hci_inquiry_result_with_rssi_evt() can perform out of bound reads on skb->data as a bound check is missing. Signed-off-by: Tomas Bortoli Reported-by: syzbot+cec7a50c412a2c03f...@syzkaller.appspotmail.com Reported-by: syzbot+660883c56e2fa65d4...@syzkaller.appspotmail.com --- Syzkaler reports: http