diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2024-07-08 14:56:15 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-07-11 11:00:08 +0200 |
commit | f2aeb7306a898e1cbd03963d376f4b6656ca2b55 (patch) | |
tree | 8d4f52f32b4bb74e867816069672048e5d6b1f9c /net/ethtool/linkstate.c | |
parent | 8c6790b5c25dfac11b589cc37346bcf9e23ad468 (diff) |
ppp: reject claimed-as-LCP but actually malformed packets
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>
Diffstat (limited to 'net/ethtool/linkstate.c')
0 files changed, 0 insertions, 0 deletions