Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

xfrm: ipcomp: Call pskb_may_pull in ipcomp_input

If a malformed packet is received there may not be enough data
to pull. This isn't a problem in practice because the caller
has already done xfrm_parse_spi which in effect does the same
thing.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+3
+3
net/xfrm/xfrm_ipcomp.c
··· 97 97 int err = -ENOMEM; 98 98 struct ip_comp_hdr *ipch; 99 99 100 + if (!pskb_may_pull(skb, sizeof(*ipch))) 101 + return -EINVAL; 102 + 100 103 if (skb_linearize_cow(skb)) 101 104 goto out; 102 105