tunnels: do not assume transport header in iptunnel_pmtud_check_icmp()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4cb47a8644cc9eb8ec81190a50e79e6530d0297f · < 43368636c663cff6e59dde93cf4b8e43ac28eb93| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tunnels: do not assume transport header in iptunnel_pmtud_check_icmp()
In some cases, iptunnel_pmtud_check_icmp() can be called while skb transport header is not set.
This triggers an out-of-bound access, because (typeof(skb->transport_header))~0U is 65535.
Access the icmp header based on IPv4 network header, after making sure icmp->type is present in skb linear part.
Note that iptunnel_pmtud_check_icmpv6()) is fine.
From the CVE record · Linux
The Linux kernel’s iptunnel_pmtud_check_icmp() can access memory out of bounds when it is called without the skb transport header set. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check their systems; affected versions are not specified.