aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPavel Skripkin <[email protected]>2021-09-02 19:04:00 +0000
committerSteffen Klassert <[email protected]>2021-09-09 10:12:17 +0000
commit3c10ffddc61f8a1a59e29a110ba70b47e679206a (patch)
tree7af23af0a5764faae0f99988c410e224cbaf44dc /net/unix/af_unix.c
parentMerge tag 'net-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/net... (diff)
downloadkernel-3c10ffddc61f8a1a59e29a110ba70b47e679206a.tar.gz
kernel-3c10ffddc61f8a1a59e29a110ba70b47e679206a.zip
net: xfrm: fix shift-out-of-bounds in xfrm_get_default
Syzbot hit shift-out-of-bounds in xfrm_get_default. The problem was in missing validation check for user data. up->dirmask comes from user-space, so we need to check if this value is less than XFRM_USERPOLICY_DIRMASK_MAX to avoid shift-out-of-bounds bugs. Fixes: 2d151d39073a ("xfrm: Add possibility to set the default to block if we have no policy") Reported-and-tested-by: [email protected] Signed-off-by: Pavel Skripkin <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions