WSL2-Linux-Kernel/drivers/net/ppp
Dmitry Antipov ebc5c63045 ppp: reject claimed-as-LCP but actually malformed packets
[ Upstream commit f2aeb7306a898e1cbd03963d376f4b6656ca2b55 ]

Since 'ppp_async_encode()' assumes valid LCP packets (with code
from 1 to 7 inclusive), add 'ppp_check_packet()' to ensure that
LCP packet has an actual body beyond PPP_LCP header bytes, and
reject claimed-as-LCP but actually malformed data otherwise.

Reported-by: syzbot+ec0723ba9605678b14bf@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=ec0723ba9605678b14bf
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-18 13:07:38 +02:00
..
Kconfig
Makefile
bsd_comp.c net: ppp: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
ppp_async.c ppp_async: limit MRU to 64K 2024-02-23 08:54:58 +01:00
ppp_deflate.c ppp: deflate: Remove useless call "zlib_inflateEnd" 2021-03-30 16:59:30 -07:00
ppp_generic.c ppp: reject claimed-as-LCP but actually malformed packets 2024-07-18 13:07:38 +02:00
ppp_mppe.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
ppp_mppe.h
ppp_synctty.c ppp: limit MRU to 64K 2023-11-28 16:56:23 +00:00
pppoe.c net: fix dev_fill_forward_path with pppoe + bridge 2022-05-25 09:57:31 +02:00
pppox.c
pptp.c pptp: Fix fib lookup calls. 2023-07-23 13:47:30 +02:00