netfilter: flowtable: Validate iph->ihl in nf_flow_ip4_tunnel_proto()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s netfilter flowtable does not validate the IPv4 header length before using it to calculate a tunnel header size. Processing a malformed IP header can cause out-of-bounds access. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with netfilter flowtable should check their exposure; affected versions were not provided.