3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00
iwd/monitor
Denis Kenzior 98e1d38056 monitor: Fix crash
NLMSG_OK and NLMSG_NEXT expect to operate on nlmsg_len which is an int
(signed type).  The current code uses an unsigned type which means that
it cannot detect underflows.  Such underflows can happen when NLMSG_NEXT
tries to advance nlmsg_len by a number of bytes (due to alignment) which
are greater than the current nlmsg_len itself.  This causes iwmon to
crash on certain messages.

Reported-By: Daniel Wagner <wagi@monom.org>
2020-01-22 11:52:28 -06:00
..
display.c monitor: Use include path from top source directory 2019-12-13 09:04:15 +01:00
display.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
iwmon.rst build: Add skeleton manual pages for all installed binaries 2019-09-22 21:57:47 +02:00
main.c monitor: Don't pass NULL as src to memcpy 2019-10-28 14:58:15 -05:00
nlmon.c monitor: Fix crash 2020-01-22 11:52:28 -06:00
nlmon.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
pcap.c treewide: fix typos 2020-01-21 16:03:28 -06:00
pcap.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00