Haimin Zhang
3c9a75b3d2
net/ieee802154: fix uninit value bug in dgram_sendmsg
...
[ Upstream commit 94160108a7 ]
There is uninit value bug in dgram_sendmsg function in
net/ieee802154/socket.c when the length of valid data pointed by the
msg->msg_name isn't verified.
We introducing a helper function ieee802154_sockaddr_check_size to
check namelen. First we check there is addr_type in ieee802154_addr_sa.
Then, we check namelen according to addr_type.
Also fixed in raw_bind, dgram_bind, dgram_connect.
Signed-off-by: Haimin Zhang <tcs_kernel@tencent.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-10-15 07:54:37 +02:00
..
2022-08-03 11:59:37 +02:00
2021-06-10 13:37:09 +02:00
2022-06-06 08:33:50 +02:00
2021-12-08 09:01:12 +01:00
2021-12-01 09:23:35 +01:00
2022-01-05 12:37:44 +01:00
2022-05-18 09:47:25 +02:00
2021-03-04 10:26:53 +01:00
2022-08-03 11:59:39 +02:00
2020-09-09 19:12:23 +02:00
2022-04-15 14:18:33 +02:00
2022-04-20 09:19:39 +02:00
2022-02-23 11:59:58 +01:00
2021-12-14 14:49:00 +01:00
2020-12-08 10:40:24 +01:00
2022-09-05 10:27:42 +02:00
2021-06-03 08:59:01 +02:00
2022-03-02 11:41:08 +01:00
2020-05-27 17:46:24 +02:00
2022-02-16 12:52:51 +01:00
2020-07-22 09:32:47 +02:00
2022-07-12 16:30:45 +02:00
2021-12-08 09:01:13 +01:00
2022-04-20 09:19:34 +02:00
2020-09-26 18:03:12 +02:00
2020-07-22 09:32:46 +02:00
2021-03-04 10:26:53 +01:00
2022-10-15 07:54:37 +02:00
2022-06-14 18:11:25 +02:00
2021-03-30 14:35:26 +02:00
2020-12-08 10:40:25 +01:00
2022-01-27 09:19:54 +01:00
2022-06-06 08:33:49 +02:00
2022-07-29 17:14:11 +02:00
2022-02-01 17:24:38 +01:00
2021-08-12 13:20:57 +02:00
2021-12-08 09:01:12 +01:00
2020-11-24 13:29:05 +01:00
2020-08-19 08:16:10 +02:00
2022-07-29 17:14:11 +02:00
2022-01-27 09:19:54 +01:00
2021-12-01 09:23:33 +01:00
2021-08-04 12:27:39 +02:00
2021-11-17 09:48:47 +01:00
2021-11-17 09:48:49 +01:00
2021-06-23 14:41:25 +02:00
2021-10-06 15:42:33 +02:00
2021-12-01 09:23:32 +01:00
2021-05-19 10:08:31 +02:00
2021-10-17 10:42:34 +02:00
2021-08-18 08:56:59 +02:00
2022-07-21 20:59:22 +02:00
2021-04-14 08:24:14 +02:00
2022-02-01 17:24:39 +01:00
2021-03-30 14:35:29 +02:00
2022-06-14 18:11:55 +02:00
2022-06-06 08:33:49 +02:00
2022-07-21 20:59:20 +02:00
2021-11-17 09:48:48 +01:00
2022-08-03 11:59:38 +02:00
2021-11-02 19:46:12 +01:00
2022-04-15 14:18:01 +02:00
2022-07-29 17:14:14 +02:00
2022-03-19 13:40:16 +01:00