diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2018-04-23 17:15:14 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-29 12:33:11 +0300 |
commit | dbf57fd1e05efc0d37503af5f08a532aff2c9823 (patch) | |
tree | 3abd9228346cb126ee798818c411a3c75214ff67 /net/ipv4/xfrm4_mode_tunnel.c | |
parent | c7a936b1dd0f75727b776479f739236a05317f7b (diff) | |
download | linux-dbf57fd1e05efc0d37503af5f08a532aff2c9823.tar.xz |
l2tp: check sockaddr length in pppol2tp_connect()
[ Upstream commit eb1c28c05894a4b1f6b56c5bf072205e64cfa280 ]
Check sockaddr_len before dereferencing sp->sa_protocol, to ensure that
it actually points to valid data.
Fixes: fd558d186df2 ("l2tp: Split pppol2tp patch into separate l2tp and ppp parts")
Reported-by: syzbot+a70ac890b23b1bf29f5c@syzkaller.appspotmail.com
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4/xfrm4_mode_tunnel.c')
0 files changed, 0 insertions, 0 deletions