kernel_samsung_a53x/drivers/net/ppp
Dmitry Antipov 70e0603b6e 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: 1da177e4c3f4 ("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-11-19 14:19:43 +01:00
..
bsd_comp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppp_async.c ppp_async: limit MRU to 64K 2024-11-18 12:13:25 +01:00
ppp_deflate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppp_generic.c ppp: reject claimed-as-LCP but actually malformed packets 2024-11-19 14:19:43 +01:00
ppp_mppe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppp_mppe.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppp_synctty.c ppp: limit MRU to 64K 2024-11-18 11:43:19 +01:00
pppoe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pppox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00