WSL2-Linux-Kernel/drivers/net/ppp
Guillaume Nault 88b7895e7c pppoe: check sockaddr length in pppoe_connect()
[ Upstream commit a49e2f5d5f ]

We must validate sockaddr_len, otherwise userspace can pass fewer data
than we expect and we end up accessing invalid data.

Fixes: 224cf5ad14 ("ppp: Move the PPP drivers")
Reported-by: syzbot+4f03bdf92fdf9ef5ddab@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>
2018-04-29 11:33:12 +02:00
..
Kconfig tty/serial patches for 3.9-rc1 2013-02-21 13:41:04 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bsd_comp.c
ppp_async.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
ppp_deflate.c ppp: deflate: never return len larger than output buffer 2015-01-29 14:50:01 -08:00
ppp_generic.c ppp: avoid loop in xmit recursion detection code 2018-03-31 18:10:40 +02:00
ppp_mppe.c ppp: mppe: Use vsnprintf extension %phN 2017-06-06 15:16:33 -04:00
ppp_mppe.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ppp_synctty.c net: manual clean code which call skb_put_[data:zero] 2017-06-20 13:30:15 -04:00
pppoe.c pppoe: check sockaddr length in pppoe_connect() 2018-04-29 11:33:12 +02:00
pppox.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
pptp.c pptp: remove a buggy dst release in pptp_connect() 2018-04-12 12:32:24 +02:00