summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-04-05 15:43:45 -0400
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-04-10 15:03:47 -0400
commita97de7bff13b1cc825c1b1344eaed8d6c2d3e695 (patch)
tree7f528536fa4e3c2a165bae91d5e6df2b2d2a8667 /net/bluetooth/hidp
parent51eda36d33e43201e7a4fd35232e069b2c850b01 (diff)
downloadlinux-stable-a97de7bff13b1cc825c1b1344eaed8d6c2d3e695.tar.gz
linux-stable-a97de7bff13b1cc825c1b1344eaed8d6c2d3e695.tar.bz2
linux-stable-a97de7bff13b1cc825c1b1344eaed8d6c2d3e695.zip
Bluetooth: RFCOMM: Fix not validating setsockopt user input
syzbot reported rfcomm_sock_setsockopt_old() is copying data without checking user input length. BUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] BUG: KASAN: slab-out-of-bounds in copy_from_sockptr include/linux/sockptr.h:55 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt_old net/bluetooth/rfcomm/sock.c:632 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt+0x893/0xa70 net/bluetooth/rfcomm/sock.c:673 Read of size 4 at addr ffff8880209a8bc3 by task syz-executor632/5064 Fixes: 9f2c8a03fbb3 ("Bluetooth: Replace RFCOMM link mode with security level") Fixes: bb23c0ab8246 ("Bluetooth: Add support for deferring RFCOMM connection setup") Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/hidp')
0 files changed, 0 insertions, 0 deletions