1
linux/net/llc
Mathias Krause 3592aaeb80 llc: fix info leak via getsockname()
The LLC code wrongly returns 0, i.e. "success", when the socket is
zapped. Together with the uninitialized uaddrlen pointer argument from
sys_getsockname this leads to an arbitrary memory leak of up to 128
bytes kernel stack via the getsockname() syscall.

Return an error instead when the socket is zapped to prevent the info
leak. Also remove the unnecessary memset(0). We don't directly write to
the memory pointed by uaddr but memcpy() a local structure at the end of
the function that is properly initialized.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-15 21:36:31 -07:00
..
af_llc.c llc: fix info leak via getsockname() 2012-08-15 21:36:31 -07:00
Kconfig
llc_c_ac.c
llc_c_ev.c
llc_c_st.c
llc_conn.c net: add a limit parameter to sk_add_backlog() 2012-04-23 22:28:28 -04:00
llc_core.c
llc_if.c
llc_input.c llc: Fix races between llc2 handler use and (un)registration 2012-08-14 16:52:02 -07:00
llc_output.c net: delete all instances of special processing for token ring 2012-05-15 20:14:35 -04:00
llc_pdu.c
llc_proc.c
llc_s_ac.c
llc_s_ev.c
llc_s_st.c
llc_sap.c net: delete all instances of special processing for token ring 2012-05-15 20:14:35 -04:00
llc_station.c llc: Fix races between llc2 handler use and (un)registration 2012-08-14 16:52:02 -07:00
Makefile
sysctl_net_llc.c net llc: Don't use sysctl tables with .child entries. 2012-04-20 21:22:29 -04:00