Commit 4cee0d81 authored by Herbert Xu's avatar Herbert Xu Committed by Greg Kroah-Hartman
Browse files

IPV4 raw: Strengthen check on validity of iph->ihl



[IPV4] raw: Strengthen check on validity of iph->ihl

[ Upstream commit: f844c74f ]

We currently check that iph->ihl is bounded by the real length and that
the real length is greater than the minimum IP header length.  However,
we did not check the caes where iph->ihl is less than the minimum IP
header length.

This breaks because some ip_fast_csum implementations assume that which
is quite reasonable.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 447ede65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment