X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fxfrm%2Fxfrm_user.c;fp=net%2Fxfrm%2Fxfrm_user.c;h=a0daa326db2c6b02c95bac315b6a6be0eed47531;hp=09542248f72b013e81cf0d6653f90291d415932e;hb=04dba730e9d4798184b4769f74ef14c20f8c6f9a;hpb=352651a0a07649e4ee03e294da069b5c3e42aae4 diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 09542248f72b..a0daa326db2c 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -393,6 +393,9 @@ static inline int xfrm_replay_verify_len(struct xfrm_replay_state_esn *replay_es if (nla_len(rp) < ulen || xfrm_replay_state_esn_len(replay_esn) != ulen) return -EINVAL; + if (up->replay_window > up->bmp_len * sizeof(__u32) * 8) + return -EINVAL; + return 0; }