]> git.itanic.dy.fi Git - linux-stable/commit
Bluetooth: hci_sock: Fix not validating setsockopt user input
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 5 Apr 2024 20:46:50 +0000 (16:46 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 10 Apr 2024 19:03:52 +0000 (15:03 -0400)
commitb2186061d6043d6345a97100460363e990af0d46
tree2328ac3672838b62d468db3672b595f3f1c61071
parent9e8742cdfc4b0e65266bb4a901a19462bda9285e
Bluetooth: hci_sock: Fix not validating setsockopt user input

Check user input length before copying data.

Fixes: 09572fca7223 ("Bluetooth: hci_sock: Add support for BT_{SND,RCV}BUF")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sock.c