Linux
netfilter: require Ethernet MAC header before using eth_hdr()
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)`.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4435888e1bf139d2bfe5911643d4217382136743
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 063f43361e884acd7300790e90194430275d0d0c
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 726abf97566867f808fec9d8a408eb9698bd570a
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 367abcacc13a8e2e7624408b7f593bd1e60e49d9
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d634afb8b83b49de562792fd0d047416a43bd4d
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cea435ea7e868ea6fdf039bc4f2090c1d829b556
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 62443dc21114c0bbc476fa62973db89743f2f137
Fixed in 4435888e1bf139d2bfe5911643d4217382136743, 063f43361e884acd7300790e90194430275d0d0c, 726abf97566867f808fec9d8a408eb9698bd570a, 367abcacc13a8e2e7624408b7f593bd1e60e49d9, 5d634afb8b83b49de562792fd0d047416a43bd4d, cea435ea7e868ea6fdf039bc4f2090c1d829b556, 62443dc21114c0bbc476fa62973db89743f2f137
- 2.6.12
Fixed in 0, 5.15.210, 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 4435888e1bf139d2bfe5911643d4217382136743 or 063f43361e884acd7300790e90194430275d0d0c or 726abf97566867f808fec9d8a408eb9698bd570a or 367abcacc13a8e2e7624408b7f593bd1e60e49d9 or 5d634afb8b83b49de562792fd0d047416a43bd4d or cea435ea7e868ea6fdf039bc4f2090c1d829b556 or 62443dc21114c0bbc476fa62973db89743f2f137 or later.
Upgrade Linux to 0 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.