linux/net/nfc
Kees Cook fe9c842695 NFC: llcp: Limit size of SDP URI
The tlv_len is u8, so we need to limit the size of the SDP URI. Enforce
this both in the NLA policy and in the code that performs the allocation
and copy, to avoid writing past the end of the allocated buffer.

Fixes: d9b8d8e19b ("NFC: llcp: Service Name Lookup netlink interface")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-16 15:16:05 -05:00
..
hci NFC: Convert timers to use timer_setup() 2017-11-06 01:12:10 +01:00
nci net: annotate ->poll() instances 2017-11-27 16:20:04 -05:00
Kconfig
Makefile
af_nfc.c
core.c NFC: Convert timers to use timer_setup() 2017-11-06 01:12:10 +01:00
digital.h
digital_core.c NFC: digital: Abort cmd when deactivating target 2017-11-10 00:03:39 +01:00
digital_dep.c
digital_technology.c
llcp.h
llcp_commands.c NFC: llcp: Limit size of SDP URI 2018-02-16 15:16:05 -05:00
llcp_core.c NFC: Convert timers to use timer_setup() 2017-11-06 01:12:10 +01:00
llcp_sock.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
netlink.c NFC: llcp: Limit size of SDP URI 2018-02-16 15:16:05 -05:00
nfc.h
rawsock.c