Luiz Augusto von Dentz
9d42f37339
Bluetooth: L2CAP: Fix not validating setsockopt user input
...
[ Upstream commit 4f3951242ace5efc7131932e2e01e6ac6baed846 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:18:25 +02:00
..
2022-03-07 11:40:41 +00:00
2022-01-17 05:49:30 +02:00
2023-04-20 12:35:06 +02:00
2024-03-26 18:20:27 -04:00
2023-02-09 11:28:04 +01:00
2023-02-09 11:28:04 +01:00
2024-03-26 18:20:40 -04:00
2021-06-26 07:12:41 +02:00
2022-08-08 17:04:37 -07:00
2021-11-02 19:37:52 +01:00
2021-03-13 00:04:03 +11:00
2021-04-27 17:05:53 -07:00
2024-03-26 18:20:42 -04:00
2022-07-22 17:13:56 -07:00
2022-12-02 13:09:31 -08:00
2021-09-07 14:09:18 -07:00
2024-03-26 18:20:40 -04:00
2024-04-03 15:19:50 +02:00
2024-04-10 16:28:24 +02:00
2021-09-22 16:17:13 +02:00
2024-04-10 16:28:24 +02:00
2024-04-17 11:18:22 +02:00
2023-10-10 22:00:40 +02:00
2023-10-25 12:03:16 +02:00
2024-04-10 16:28:24 +02:00
2023-11-28 17:06:56 +00:00
2023-10-10 22:00:40 +02:00
2022-07-22 17:13:22 -07:00
2024-03-06 14:45:07 +00:00
2024-04-17 11:18:25 +02:00
2022-12-31 13:32:28 +01:00
2022-07-22 17:13:39 -07:00
2021-06-26 07:12:42 +02:00
2022-09-06 13:18:24 -07:00
2023-02-01 08:34:21 +01:00
2024-03-26 18:20:42 -04:00
2022-08-08 17:04:37 -07:00
2022-07-21 17:14:55 -07:00
2024-04-17 11:18:25 +02:00
2021-03-13 00:04:03 +11:00
2024-01-01 12:39:03 +00:00
2021-06-26 07:12:37 +02:00