]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm6: fix a potential use after free in xfrm6_policy.c
authorLi RongQing <roy.qing.li@gmail.com>
Wed, 22 Oct 2014 09:09:53 +0000 (17:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Oct 2014 19:38:48 +0000 (15:38 -0400)
commit537ecf537810d024c14875bcccfd2d05955220ec
tree540a6b000c26f001178b237ccc41010fe8aee59e
parentb656dc12e3f1bd2b71725efbbce3653284b629df
xfrm6: fix a potential use after free in xfrm6_policy.c

pskb_may_pull() maybe change skb->data and make nh and exthdr pointer
oboslete, so recompute the nd and exthdr

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_policy.c