vxlan: do not reuse cached ip_hdr() value after skb_tunnel_check_pmtu()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4cb47a8644cc9eb8ec81190a50e79e6530d0297f · < 5303925e360527243b46a440a04667826bbc72b7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vxlan: do not reuse cached ip_hdr() value after skb_tunnel_check_pmtu()
skb_tunnel_check_pmtu() can change skb->head.
Reusing old_iph afer skb_tunnel_check_pmtu() can cause an UAF.
Use instead ip_hdr(skb) as done in drivers/net/bareudp.c and drivers/net/geneve.c.
Found by Sashiko.
From the CVE record · Linux
The Linux kernel’s vxlan code can reuse a cached IP header after skb_tunnel_check_pmtu() changes the packet buffer, causing a use-after-free. The input does not specify how an attacker could trigger it or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with vxlan should check their versions against the Linux kernel advisory; affected versions were not provided.