]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix a potential use after free in sit.c
authorLi RongQing <roy.qing.li@gmail.com>
Sat, 18 Oct 2014 09:33:38 +0000 (17:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Oct 2014 17:04:09 +0000 (13:04 -0400)
commiteae563a6678d7302c410c7e177eb74de91c351ce
treed2cd98564a10f6cbf52492765d383f7959f4f001
parent49e3dacb22b04a7010a3f01872d647fb6de55593
ipv6: fix a potential use after free in sit.c

pskb_may_pull() maybe change skb->data and make iph pointer oboslete,
fix it by geting ip header length directly.

Fixes: 240b7926 (sit: generate icmpv6 error when receiving icmpv4 error)
Cc: Oussama Ghorbel <ghorbel@pivasoftware.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c