netfilter: ip6t_eui64: reject invalid MAC header for all packets
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 807d6ee15804df6f01a35c910f09612e858739a6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ip6t_eui64: reject invalid MAC header for all packets
`eui64_mt6()` derives a modified EUI-64 from the Ethernet source address and compares it with the low 64 bits of the IPv6 source address.
The existing guard only rejects an invalid MAC header when `par->fragoff != 0`. For packets with `par->fragoff == 0`, `eui64_mt6()` can still reach `eth_hdr(skb)` even when the MAC header is not valid.
Fix this by removing the `par->fragoff != 0` condition so that packets with an invalid MAC header are rejected before accessing `eth_hdr(skb)`.
From the CVE record · Linux
The Linux kernel's netfilter ip6t_eui64 matcher can access an invalid MAC header when processing a packet with a fragment offset of zero. This can cause an out-of-bounds read; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels that include the affected netfilter ip6t_eui64 code should check their versions against the vendor advisory.