aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip6_route.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-02-12 14:42:01 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2018-02-13 09:12:09 +0100
commitd97ca5d714a5334aecadadf696875da40f1fbf3e (patch)
tree6bbb65e655aca87c6fc27289673cd3ffe005147a /include/net/ip6_route.h
parentxfrm: Fix policy hold queue after flowcache removal. (diff)
downloadlinux-dev-d97ca5d714a5334aecadadf696875da40f1fbf3e.tar.xz
linux-dev-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 'include/net/ip6_route.h')
0 files changed, 0 insertions, 0 deletions