linux_dsm_epyc7002/net/netrom
Mathias Krause 3ce5efad47 netrom: fix info leak via msg_name in nr_recvmsg()
In case msg_name is set the sockaddr info gets filled out, as
requested, but the code fails to initialize the padding bytes of
struct sockaddr_ax25 inserted by the compiler for alignment. Also
the sax25_ndigis member does not get assigned, leaking four more
bytes.

Both issues lead to the fact that the code will leak uninitialized
kernel stack bytes in net/socket.c.

Fix both issues by initializing the memory with memset(0).

Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-07 16:28:02 -04:00
..
af_netrom.c netrom: fix info leak via msg_name in nr_recvmsg() 2013-04-07 16:28:02 -04:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nr_dev.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
nr_in.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
nr_loopback.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
nr_out.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
nr_route.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
nr_subr.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
nr_timer.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sysctl_net_netrom.c net: Convert all sysctl registrations to register_net_sysctl 2012-04-20 21:22:30 -04:00