Zhengchuan Liang
62443dc211
netfilter: require Ethernet MAC header before using eth_hdr()
...
`ip6t_eui64`, `xt_mac`, the `bitmap:ip,mac`, `hash:ip,mac`, and
`hash:mac` ipset types, and `nf_log_syslog` access `eth_hdr(skb)`
after either assuming that the skb is associated with an Ethernet
device or checking only that the `ETH_HLEN` bytes at
`skb_mac_header(skb)` lie between `skb->head` and `skb->data`.
Make these paths first verify that the skb is associated with an
Ethernet device, that the MAC header was set, and that it spans at
least a full Ethernet header before accessing `eth_hdr(skb)`.
Suggested-by: Florian Westphal <fw@strlen.de >
Tested-by: Ren Wei <enjou1224z@gmail.com >
Signed-off-by: Zhengchuan Liang <zcliangcn@gmail.com >
Signed-off-by: Ren Wei <n05ec@lzu.edu.cn >
Signed-off-by: Florian Westphal <fw@strlen.de >
2026-04-10 12:16:27 +02:00
..
2026-04-10 12:16:27 +02:00
2026-04-10 12:16:26 +02:00
2026-03-29 11:21:24 -07:00
2026-04-10 12:16:26 +02:00
2025-11-27 23:59:43 +00:00
2026-03-19 10:26:31 +01:00
2026-02-21 17:09:51 -08:00
2022-02-04 06:30:28 +01:00
2026-04-08 07:51:26 +02:00
2026-02-11 19:31:52 -08:00
2026-03-26 13:24:40 +01:00
2026-04-10 12:16:26 +02:00
2026-03-26 13:18:32 +01:00
2026-03-26 13:28:03 +01:00
2023-09-13 21:57:50 +02:00
2026-04-08 07:51:26 +02:00
2026-04-08 07:51:31 +02:00
2026-03-26 13:18:31 +01:00
2026-04-01 11:55:29 +02:00
2026-04-08 07:51:26 +02:00
2023-10-24 13:16:30 +02:00
2022-01-11 10:41:44 +01:00
2026-04-02 11:03:13 -07:00
2026-02-06 20:50:03 -08:00
2022-07-11 16:25:15 +02:00
2026-01-20 16:23:37 +01:00
2026-02-21 01:02:28 -08:00
2026-01-20 16:23:37 +01:00
2026-01-20 16:23:37 +01:00
2026-03-13 15:31:14 +01:00
2026-03-26 13:28:17 +01:00
2026-04-10 12:16:26 +02:00
2026-04-10 12:16:26 +02:00
2022-08-11 16:50:25 +02:00
2022-02-04 06:30:28 +01:00
2026-04-08 07:51:27 +02:00
2026-04-08 07:51:26 +02:00
2026-04-10 12:16:26 +02:00
2026-04-08 07:51:26 +02:00
2022-07-11 16:25:15 +02:00
2022-02-04 06:30:28 +01:00
2026-04-08 07:51:31 +02:00
2026-01-02 12:04:28 -08:00
2026-02-06 13:34:55 +01:00
2024-09-12 15:41:03 +02:00
2026-03-13 15:31:15 +01:00
2026-04-02 11:03:13 -07:00
2026-01-20 16:23:37 +01:00
2022-07-11 16:25:14 +02:00
2026-02-21 01:02:28 -08:00
2024-07-24 20:59:29 +02:00
2024-06-19 18:41:59 +02:00
2026-04-10 12:16:27 +02:00
2026-02-21 01:02:28 -08:00
2022-09-07 16:46:04 +02:00
2026-01-02 12:04:28 -08:00
2026-04-10 12:16:26 +02:00
2022-09-07 16:46:04 +02:00
2022-11-18 02:15:15 +01:00
2022-09-07 16:46:04 +02:00
2026-03-29 11:21:24 -07:00
2026-01-20 16:23:37 +01:00
2026-04-10 12:16:26 +02:00
2023-11-08 16:40:30 +01:00
2022-09-07 16:46:04 +02:00
2026-03-09 18:32:45 -07:00
2026-01-20 16:23:37 +01:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:31 +02:00
2026-02-21 17:09:51 -08:00
2025-07-14 15:22:35 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:30 +02:00
2026-04-10 12:16:26 +02:00
2026-04-08 07:51:30 +02:00
2026-04-10 12:16:26 +02:00
2026-04-08 07:51:30 +02:00
2026-04-10 12:16:26 +02:00
2026-03-09 18:32:45 -07:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-03-12 12:53:34 -07:00
2023-11-08 13:52:32 +01:00
2021-05-29 01:04:54 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:30 +02:00
2026-02-25 19:36:26 -08:00
2023-05-03 13:49:08 +02:00
2026-04-10 12:16:26 +02:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-04-10 12:16:27 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:30 +02:00
2026-02-26 10:23:00 -08:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-02-25 19:36:26 -08:00
2026-02-25 19:36:26 -08:00
2024-09-03 10:47:17 +02:00
2026-04-08 07:51:31 +02:00
2025-09-10 20:28:24 +02:00
2026-03-05 13:22:37 +01:00
2026-04-08 07:51:31 +02:00
2025-08-20 13:52:37 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-03-26 12:09:57 -07:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:30 +02:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-03-29 11:21:24 -07:00
2026-04-10 12:16:27 +02:00
2024-10-09 23:20:46 +02:00
2025-12-16 11:04:14 -05:00
2021-08-17 00:45:07 +02:00
2026-04-01 11:55:29 +02:00
2024-10-09 23:20:46 +02:00
2024-10-09 23:20:46 +02:00
2024-10-09 23:20:46 +02:00
2026-03-09 18:32:45 -07:00
2026-03-09 18:32:45 -07:00
2024-10-09 23:20:46 +02:00
2024-10-09 23:20:46 +02:00
2026-03-13 15:31:15 +01:00
2026-04-08 07:51:27 +02:00
2022-07-11 16:40:45 +02:00
2026-02-21 17:09:51 -08:00
2026-04-10 12:16:26 +02:00
2020-08-28 19:55:51 +02:00
2026-03-10 14:10:43 +01:00
2026-02-21 17:09:51 -08:00
2023-02-22 21:25:23 -08:00
2026-02-21 17:09:51 -08:00
2021-09-21 03:46:56 +02:00
2026-04-10 12:16:27 +02:00
2025-05-22 17:16:02 +02:00
2026-04-08 13:33:38 +02:00
2025-07-25 18:40:43 +02:00
2024-10-21 11:31:26 +02:00
2023-06-20 22:43:42 +02:00
2026-03-04 11:45:44 +01:00
2026-04-10 12:16:26 +02:00
2026-02-21 17:09:51 -08:00
2026-04-01 11:55:29 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2023-03-22 21:48:59 +01:00
2025-03-23 10:53:47 +01:00
2023-08-30 17:34:01 +02:00
2024-10-09 23:20:46 +02:00
2026-04-10 12:16:26 +02:00
2026-02-21 17:09:51 -08:00
2026-01-20 16:23:38 +01:00
2022-07-11 16:40:45 +02:00
2025-05-22 17:16:02 +02:00
2026-03-10 14:10:42 +01:00
2026-02-21 17:09:51 -08:00
2026-03-19 14:16:00 -07:00
2022-07-21 00:56:00 +02:00
2024-10-21 11:31:26 +02:00
2023-08-30 17:34:01 +02:00