056e93f83e
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
af_unix.c | ||
diag.c | ||
garbage.c | ||
sysctl_net_unix.c |