This is a note to let you know that I've just added the patch titled
l2tp: fix info leak via getsockname()
to the 3.5-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:
l2tp-fix-info-leak-via-getsockname.patch
and it can be found in the queue-3.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From c2a22a136f3fedc20e23349a52256c4eb489c47f Mon Sep 17 00:00:00 2001
From: Mathias Krause <[email protected]>
Date: Wed, 15 Aug 2012 11:31:52 +0000
Subject: l2tp: fix info leak via getsockname()
From: Mathias Krause <[email protected]>
[ Upstream commit 04d4fbca1017c11381e7d82acea21dd741e748bc ]
The L2TP code for IPv6 fails to initialize the l2tp_unused member of
struct sockaddr_l2tpip6 and that for leaks two bytes kernel stack via
the getsockname() syscall. Initialize l2tp_unused with 0 to avoid the
info leak.
Signed-off-by: Mathias Krause <[email protected]>
Cc: James Chapman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
net/l2tp/l2tp_ip6.c | 1 +
1 file changed, 1 insertion(+)
--- a/net/l2tp/l2tp_ip6.c
+++ b/net/l2tp/l2tp_ip6.c
@@ -410,6 +410,7 @@ static int l2tp_ip6_getname(struct socke
lsa->l2tp_family = AF_INET6;
lsa->l2tp_flowinfo = 0;
lsa->l2tp_scope_id = 0;
+ lsa->l2tp_unused = 0;
if (peer) {
if (!lsk->peer_conn_id)
return -ENOTCONN;
Patches currently in stable-queue which might be from [email protected] are
queue-3.5/ipvs-fix-info-leak-in-getsockopt-ip_vs_so_get_timeout.patch
queue-3.5/bluetooth-rfcomm-fix-info-leak-via-getsockname.patch
queue-3.5/bluetooth-hci-fix-info-leak-in-getsockopt-hci_filter.patch
queue-3.5/l2tp-fix-info-leak-via-getsockname.patch
queue-3.5/bluetooth-hci-fix-info-leak-via-getsockname.patch
queue-3.5/atm-fix-info-leak-in-getsockopt-so_atmpvc.patch
queue-3.5/llc-fix-info-leak-via-getsockname.patch
queue-3.5/net-fix-info-leak-in-compat-dev_ifconf.patch
queue-3.5/bluetooth-rfcomm-fix-info-leak-in-getsockopt-bt_security.patch
queue-3.5/atm-fix-info-leak-via-getsockname.patch
queue-3.5/bluetooth-l2cap-fix-info-leak-via-getsockname.patch
queue-3.5/dccp-fix-info-leak-via-getsockopt-dccp_sockopt_ccid_tx_info.patch
queue-3.5/bluetooth-rfcomm-fix-info-leak-in-ioctl-rfcommgetdevlist.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html