tunnels: load network headers after skb_cow() in iptunnel_pmtud_build_icmp[v6]()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4cb47a8644cc9eb8ec81190a50e79e6530d0297f · < 6dff77899b9e9fe5d854abda3a98ad04e7229ef7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tunnels: load network headers after skb_cow() in iptunnel_pmtud_build_icmp[v6]()
Sashiko found that iptunnel_pmtud_build_icmp() and iptunnel_pmtud_build_icmpv6() were caching ip_hdr() and ipv6_hdr() before an skb_cow() call which can reallocate skb->head.
Fix this possible UAF by initializing the local variables after the skb_cow() call.
Remove skb_reset_network_header() calls which were not needed.
From the CVE record · Linux
The Linux kernel’s tunnel ICMP construction functions can retain network-header pointers across an skb_cow() call that may reallocate the packet buffer. This can cause a possible use-after-free when those headers are accessed afterward; the input does not specify whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels should check whether their builds include the affected tunnel code; affected versions are not specified.