ipvs: use parsed transport offset in TCP state lookup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0bbdd42b7efa66685b6d74701bcde3a596a3a59d · < d73f4249776dd970ad65a69cfc51613dd8a034bb| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipvs: use parsed transport offset in TCP state lookup
TCP state handling reparses the skb to find the TCP header. For IPv6 it uses sizeof(struct ipv6hdr), while the surrounding IPVS code already parsed the packet with ip_vs_fill_iph_skb() and has the real transport-header offset in iph.len.
This makes TCP state handling look at the wrong bytes when an IPv6 packet carries extension headers. Use the parsed transport offset passed down from ip_vs_set_state() when reading the TCP header.
For IPv4 and for IPv6 packets without extension headers, the passed offset matches the previous value.
From the CVE record · Linux
Linux kernel IPVS TCP state handling can read the wrong bytes as a TCP header when processing an IPv6 packet with extension headers. A sender of such packets can trigger incorrect TCP state handling; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with IPVS should check their exposure; affected versions were not specified.