diff options
| author | 2026-05-25 20:36:42 +0000 | |
|---|---|---|
| committer | 2026-05-26 18:10:55 -0700 | |
| commit | 7d9ef0cb271555d8cf39fefe6c981e1493b25ecf (patch) | |
| tree | 8eb447e2c4b9aa1abf729a7a39fa12b62637c37a /samples/kobject/ssh:/git@git.zx2c4.com | |
| parent | tunnels: load network headers after skb_cow() in iptunnel_pmtud_build_icmp[v6]() (diff) | |
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.
Fixes: 4cb47a8644cc ("tunnels: PMTU discovery support for directly bridged IP packets")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://patch.msgid.link/20260525203642.2389723-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'samples/kobject/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
