aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
authorPeilin Ye <[email protected]>2020-07-10 16:09:15 +0000
committerMarcel Holtmann <[email protected]>2020-07-10 17:08:32 +0000
commit51c19bf3d5cfaa66571e4b88ba2a6f6295311101 (patch)
tree6cf9d3177bc98e38e12a72ebce4ebb141923fc14 /net/bluetooth/l2cap_sock.c
parentBluetooth: Use whitelist for scan policy when suspending (diff)
downloadkernel-51c19bf3d5cfaa66571e4b88ba2a6f6295311101.tar.gz
kernel-51c19bf3d5cfaa66571e4b88ba2a6f6295311101.zip
Bluetooth: Fix slab-out-of-bounds read in hci_extended_inquiry_result_evt()
Check upon `num_rsp` is insufficient. A malformed event packet with a large `num_rsp` number makes hci_extended_inquiry_result_evt() go out of bounds. Fix it. This patch fixes the following syzbot bug: https://syzkaller.appspot.com/bug?id=4bf11aa05c4ca51ce0df86e500fce486552dc8d2 Reported-by: [email protected] Cc: [email protected] Signed-off-by: Peilin Ye <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
0 files changed, 0 insertions, 0 deletions