This is a note to let you know that I've just added the patch titled iucv: Fix missing msg_namelen update in iucv_sock_recvmsg() to the 3.0-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: iucv-fix-missing-msg_namelen-update-in-iucv_sock_recvmsg.patch and it can be found in the queue-3.0 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From e76456f9449125c6f3765ff7d6836ae0054c10c2 Mon Sep 17 00:00:00 2001 From: Mathias Krause <minipli@xxxxxxxxxxxxxx> Date: Sun, 7 Apr 2013 01:51:54 +0000 Subject: iucv: Fix missing msg_namelen update in iucv_sock_recvmsg() From: Mathias Krause <minipli@xxxxxxxxxxxxxx> [ Upstream commit a5598bd9c087dc0efc250a5221e5d0e6f584ee88 ] The current code does not fill the msg_name member in case it is set. It also does not set the msg_namelen member to 0 and therefore makes net/socket.c leak the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. Fix that by simply setting msg_namelen to 0 as obviously nobody cared about iucv_sock_recvmsg() not filling the msg_name in case it was set. Signed-off-by: Mathias Krause <minipli@xxxxxxxxxxxxxx> Cc: Ursula Braun <ursula.braun@xxxxxxxxxx> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- net/iucv/af_iucv.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -1157,6 +1157,8 @@ static int iucv_sock_recvmsg(struct kioc struct sk_buff *skb, *rskb, *cskb; int err = 0; + msg->msg_namelen = 0; + if ((sk->sk_state == IUCV_DISCONN || sk->sk_state == IUCV_SEVERED) && skb_queue_empty(&iucv->backlog_skb_q) && skb_queue_empty(&sk->sk_receive_queue) && Patches currently in stable-queue which might be from minipli@xxxxxxxxxxxxxx are queue-3.0/irda-fix-missing-msg_namelen-update-in-irda_recvmsg_dgram.patch queue-3.0/bluetooth-rfcomm-fix-missing-msg_namelen-update-in-rfcomm_sock_recvmsg.patch queue-3.0/llc-fix-missing-msg_namelen-update-in-llc_ui_recvmsg.patch queue-3.0/atm-update-msg_namelen-in-vcc_recvmsg.patch queue-3.0/iucv-fix-missing-msg_namelen-update-in-iucv_sock_recvmsg.patch queue-3.0/ax25-fix-info-leak-via-msg_name-in-ax25_recvmsg.patch queue-3.0/tipc-fix-info-leaks-via-msg_name-in-recv_msg-recv_stream.patch queue-3.0/netrom-fix-info-leak-via-msg_name-in-nr_recvmsg.patch queue-3.0/caif-fix-missing-msg_namelen-update-in-caif_seqpkt_recvmsg.patch queue-3.0/bluetooth-fix-possible-info-leak-in-bt_sock_recvmsg.patch queue-3.0/rose-fix-info-leak-via-msg_name-in-rose_recvmsg.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html