Linux
netfilter: flowtable: Validate iph->ihl in nf_flow_ip4_tunnel_proto()
In the Linux kernel, the following vulnerability has been resolved: netfilter: flowtable: Validate iph->ihl in nf_flow_ip4_tunnel_proto() Add sanity check for iph->ihl field in nf_flow_ip4_tunnel_proto() before using it to compute the header size, avoiding out-of-bounds access with malformed IP headers. While at it, use iph->protocol instead of the hardcoded IPPROTO_IPIP constant when setting ctx->tun.proto and reference ctx->tun.hdr_size when updating ctx->offset.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ab427db17885814069bae891834f20842f0ac3a4, < 025a41e76b51fbc7b8eaa5bacbaa9621d00e6aa7
- >= ab427db17885814069bae891834f20842f0ac3a4, < 84460b644329e25809b4a6d9279d6359d7fd8ebc
Fixed in 025a41e76b51fbc7b8eaa5bacbaa9621d00e6aa7, 84460b644329e25809b4a6d9279d6359d7fd8ebc
- 6.19
Fixed in 0, 7.1.5, 7.2
Mitigation
Upgrade Linux to 025a41e76b51fbc7b8eaa5bacbaa9621d00e6aa7 or 84460b644329e25809b4a6d9279d6359d7fd8ebc or later.
Upgrade Linux to 0 or 7.1.5 or 7.2 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.