mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
xfrm_user: uncoditionally validate esn replay attribute struct
The sanity test added inecd7918745can 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+0ab777c27d2bb7588f73@syzkaller.appspotmail.com Cc: Mathias Krause <minipli@googlemail.com> Fixes:ecd7918745("xfrm_user: ensure user supplied esn replay window is valid") Fixes:d8647b79c3("xfrm: Add user interface for esn and big anti-replay windows") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
2471c98165
commit
d97ca5d714
1 changed files with 8 additions and 13 deletions
Loading…
Add table
Add a link
Reference in a new issue