]> git.itanic.dy.fi Git - linux-stable/commit
Bluetooth: L2CAP: Fix not validating setsockopt user input
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 5 Apr 2024 19:50:47 +0000 (15:50 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 10 Apr 2024 19:03:49 +0000 (15:03 -0400)
commit4f3951242ace5efc7131932e2e01e6ac6baed846
tree4ab10473a1717eccf9223d6187a170b207482464
parenta97de7bff13b1cc825c1b1344eaed8d6c2d3e695
Bluetooth: L2CAP: Fix not validating setsockopt user input

Check user input length before copying data.

Fixes: 33575df7be67 ("Bluetooth: move l2cap_sock_setsockopt() to l2cap_sock.c")
Fixes: 3ee7b7cd8390 ("Bluetooth: Add BT_MODE socket option")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/l2cap_sock.c