android_kernel_lge_bullhead/net/nfc
Mateusz Jurczyk ecdd351fab NFC: Add sockaddr length checks before accessing sa_family in bind handlers
commit f6a5885fc4d68e7f25ffb42b9d8d80aebb3bacbb upstream.

Verify that the caller-provided sockaddr structure is large enough to
contain the sa_family field, before accessing it in bind() handlers of the
AF_NFC socket. Since the syscall doesn't enforce a minimum size of the
corresponding memory region, very short sockaddrs (zero or one byte long)
result in operating on uninitialized memory while referencing .sa_family.

Signed-off-by: Mateusz Jurczyk <mjurczyk@google.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-26 17:12:28 +02:00
..
hci NFC: Initial Secure Element API 2013-01-10 00:51:54 +01:00
nci NFC: Initial Secure Element API 2013-01-10 00:51:54 +01:00
Kconfig NFC: Add missing RFKILL dependency for Kconfig 2013-04-27 01:02:46 +02:00
Makefile NFC: Remove commented out LLCP related Makefile line 2013-05-21 10:47:41 +02:00
af_nfc.c NFC: Core code identation fixes 2012-03-06 15:16:25 -05:00
core.c NFC: fix broken device allocation 2019-08-26 17:12:26 +02:00
llcp.h NFC: llcp: Fix non blocking sockets connections 2013-08-29 09:47:30 -07:00
llcp_commands.c NFC: llcp: Limit size of SDP URI 2018-07-12 16:45:15 -07:00
llcp_core.c micro-optimization: Use DSTRLEN to remove incorrect strlen uses 2019-08-26 13:31:43 +02:00
llcp_sock.c NFC: Add sockaddr length checks before accessing sa_family in bind handlers 2019-08-26 17:12:28 +02:00
netlink.c nfc: Ensure presence of required attributes in the activate_target handler 2019-08-26 17:12:27 +02:00
nfc.h NFC: Move LLCP code to the NFC top level diirectory 2013-04-26 12:37:28 +02:00
rawsock.c net: rework recvmsg handler msg_name and msg_namelen logic 2013-12-08 07:29:25 -08:00