This is a note to let you know that I've just added the patch titled Bluetooth: RFCOMM - Fix missing msg_namelen update in rfcomm_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: bluetooth-rfcomm-fix-missing-msg_namelen-update-in-rfcomm_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 c23c33b9e708bd858cd62d92c1c3a95e22cbaeba Mon Sep 17 00:00:00 2001 From: Mathias Krause <minipli@xxxxxxxxxxxxxx> Date: Sun, 7 Apr 2013 01:51:50 +0000 Subject: Bluetooth: RFCOMM - Fix missing msg_namelen update in rfcomm_sock_recvmsg() From: Mathias Krause <minipli@xxxxxxxxxxxxxx> [ Upstream commit e11e0455c0d7d3d62276a0c55d9dfbc16779d691 ] If RFCOMM_DEFER_SETUP is set in the flags, rfcomm_sock_recvmsg() returns early with 0 without updating the possibly set msg_namelen member. This, in turn, leads to a 128 byte kernel stack leak in net/socket.c. Fix this by updating msg_namelen in this case. For all other cases it will be handled in bt_sock_stream_recvmsg(). Signed-off-by: Mathias Krause <minipli@xxxxxxxxxxxxxx> Cc: Marcel Holtmann <marcel@xxxxxxxxxxxx> Cc: Gustavo Padovan <gustavo@xxxxxxxxxxx> Cc: Johan Hedberg <johan.hedberg@xxxxxxxxx> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- net/bluetooth/rfcomm/sock.c | 1 + 1 file changed, 1 insertion(+) --- a/net/bluetooth/rfcomm/sock.c +++ b/net/bluetooth/rfcomm/sock.c @@ -624,6 +624,7 @@ static int rfcomm_sock_recvmsg(struct ki if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { rfcomm_dlc_accept(d); + msg->msg_namelen = 0; return 0; } 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