netfilter: require Ethernet MAC header before using eth_hdr()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < cea435ea7e868ea6fdf039bc4f2090c1d829b556| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
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)`.
From the CVE record · Linux
Several Linux kernel netfilter paths access an Ethernet header without fully checking that the packet is associated with an Ethernet device and has a complete MAC header. This can cause an out-of-bounds read when those paths process a packet without a valid Ethernet header. The input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check their systems; affected versions are not specified.