diff options
| author | Zhengchuan Liang <zcliangcn@gmail.com> | 2026-04-04 12:39:48 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-06-19 14:48:13 +0300 |
| commit | cea435ea7e868ea6fdf039bc4f2090c1d829b556 (patch) | |
| tree | 6eeb7c3e494cb6f44f835eeb22050fc7fe1fc7a8 /tools/lib/python/kdoc/python_version.py | |
| parent | cfd5fc814790233446acac03830e45d5b1646ce4 (diff) | |
| download | linux-cea435ea7e868ea6fdf039bc4f2090c1d829b556.tar.xz | |
netfilter: require Ethernet MAC header before using eth_hdr()
[ Upstream commit 62443dc21114c0bbc476fa62973db89743f2f137 ]
`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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
