diff options
author | Florian Westphal <fw@strlen.de> | 2018-02-12 14:42:01 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2018-02-13 09:12:09 +0100 |
commit | d97ca5d714a5334aecadadf696875da40f1fbf3e (patch) | |
tree | 6bbb65e655aca87c6fc27289673cd3ffe005147a /block/blk-wbt.h | |
parent | 2471c98165494173a3cd03231b216b909c063e41 (diff) | |
download | linux-d97ca5d714a5334aecadadf696875da40f1fbf3e.tar.gz linux-d97ca5d714a5334aecadadf696875da40f1fbf3e.tar.bz2 linux-d97ca5d714a5334aecadadf696875da40f1fbf3e.zip |
xfrm_user: uncoditionally validate esn replay attribute struct
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+0ab777c27d2bb7588f73@syzkaller.appspotmail.com
Cc: Mathias Krause <minipli@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 <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'block/blk-wbt.h')
0 files changed, 0 insertions, 0 deletions