On Mon, Feb 12, 2018 at 02:42:01PM +0100, Florian Westphal wrote:
> The sanity test added in ecd7918745234 can be bypassed, validation
> only occurs if XFRM_STATE_ESN flag is set, but rest of code doesn't care
> and just checks if the attribute itself is present.
> 
> So always validate.  Alternative is to reject if we have the attribute
> without the flag but that would change abi.
> 
> Reported-by: syzbot+0ab777c27d2bb7588...@syzkaller.appspotmail.com
> Cc: Mathias Krause <mini...@googlemail.com>
> Fixes: ecd7918745234 ("xfrm_user: ensure user supplied esn replay window is 
> valid")
> Fixes: d8647b79c3b7e ("xfrm: Add user interface for esn and big anti-replay 
> windows")
> Signed-off-by: Florian Westphal <f...@strlen.de>

Patch applied, thanks Florian!

Reply via email to