mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
l2tp: check sockaddr length in pppol2tp_connect()
commiteb1c28c058upstream. Check sockaddr_len before dereferencing sp->sa_protocol, to ensure that it actually points to valid data. Fixes:fd558d186d("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: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
0306778621
commit
8439b2c53e
1 changed files with 7 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue