android_kernel_samsung_msm8226/net/unix
Mateusz Jurczyk 056e93f83e af_unix: Add sockaddr length checks before accessing sa_family in bind and connect handlers
Verify that the caller-provided sockaddr structure is large enough to
contain the sa_family field, before accessing it in bind() and connect()
handlers of the AF_UNIX socket. Since neither syscall enforces 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.

Change-Id: Ifa18852cf4380eac682bd3a533abf6a512b5ec47
Signed-off-by: Mateusz Jurczyk <mjurczyk@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2019-08-08 12:10:17 +02:00
..
Kconfig
Makefile
af_unix.c af_unix: Add sockaddr length checks before accessing sa_family in bind and connect handlers 2019-08-08 12:10:17 +02:00
diag.c
garbage.c
sysctl_net_unix.c