]> Git Repo - linux.git/commit - net/ipv4/ip_tunnel_core.c
ipv4: fix a potential use after free in ip_tunnel_core.c
authorLi RongQing <[email protected]>
Fri, 17 Oct 2014 08:53:23 +0000 (16:53 +0800)
committerDavid S. Miller <[email protected]>
Sat, 18 Oct 2014 03:45:26 +0000 (23:45 -0400)
commit1245dfc8cadb258386fcd27df38215a0eccb1f17
tree38a3993b3d7e13526c5a9980eb43aaff9ee3c0ad
parentf88e67149f97d73c704d6fe6f492edde97463025
ipv4: fix a potential use after free in ip_tunnel_core.c

pskb_may_pull() maybe change skb->data and make eth pointer oboslete,
so set eth after pskb_may_pull()

Fixes:3d7b46cd("ip_tunnel: push generic protocol handling to ip_tunnel module")
Cc: Pravin B Shelar <[email protected]>
Signed-off-by: Li RongQing <[email protected]>
Acked-by: Pravin B Shelar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/ip_tunnel_core.c
This page took 0.054671 seconds and 4 git commands to generate.