netfilter: ip6tables: mark malformed IPv6 extension headers for hotdrop
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 3d441be2b1c5e98167302fa1c7b61960a067b112| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ip6tables: mark malformed IPv6 extension headers for hotdrop
The ah, hbh and rt matches check that the fixed extension header is present, then use the header length field to derive the advertised extension header length for matching.
For the ah match, add the missing advertised-length check. For hbh and rt, update the existing advertised-length checks. In all three cases, set hotdrop to true before returning false when the advertised extension header length exceeds the available skb data.
Returning false treats the packet as a rule mismatch. Set hotdrop to true and drop malformed packets so they cannot bypass rules intended to drop packets with these IPv6 extension headers.
From the CVE record · Linux
Linux kernel ip6tables matching for AH, hop-by-hop, and routing IPv6 extension headers can treat malformed packets as rule mismatches. A network attacker can send packets whose advertised extension-header length exceeds the available data, allowing them to bypass rules intended to drop packets with those headers.
Engineers running Linux kernels that use ip6tables rules to drop packets with these IPv6 extension headers should check their deployments; affected versions were not provided.