]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: fix info leak in l2tp_ip6_recvmsg()
authorMathias Krause <minipli@googlemail.com>
Sun, 7 Apr 2013 01:51:55 +0000 (01:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2013 20:28:01 +0000 (16:28 -0400)
commitea65f34054196045a05bf44eada7c4b2f11c36c2
treee654b34c09acf71de2864416e5d13cb3cd0c10f3
parent573c3c5f697895be7e00ceb532ef6f6c7234f827
l2tp: fix info leak in l2tp_ip6_recvmsg()

The L2TP code for IPv6 fails to initialize the l2tp_conn_id member of
struct sockaddr_l2tpip6 and therefore leaks four bytes kernel stack
in l2tp_ip6_recvmsg() in case msg_name is set.

Initialize l2tp_conn_id with 0 to avoid the info leak.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip6.c