aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorPeilin Ye <yepeilin.cs@gmail.com>2020-09-09 03:17:00 -0400
committerMarcel Holtmann <marcel@holtmann.org>2020-11-09 13:15:21 +0100
commitf7e0e8b2f1b0a09b527885babda3e912ba820798 (patch)
tree28b81957e1a3c6b1c07ddcc3b54b9f06bc01c228 /net/bluetooth/hci_request.c
parentBluetooth: hci_h5: close serdev device and free hu in h5_close (diff)
downloadlinux-f7e0e8b2f1b0a09b527885babda3e912ba820798.tar.gz
linux-f7e0e8b2f1b0a09b527885babda3e912ba820798.zip
Bluetooth: Fix slab-out-of-bounds read in hci_le_direct_adv_report_evt()
`num_reports` is not being properly checked. A malformed event packet with a large `num_reports` number makes hci_le_direct_adv_report_evt() read out of bounds. Fix it. Cc: stable@vger.kernel.org Fixes: 2f010b55884e ("Bluetooth: Add support for handling LE Direct Advertising Report events") Reported-and-tested-by: syzbot+24ebd650e20bd263ca01@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?extid=24ebd650e20bd263ca01 Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions