lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151109065236.GA2271@mx.elandsys.com>
Date:	Sun, 8 Nov 2015 22:52:36 -0800
From:	Loganaden Velvindron <logan@...ndsys.com>
To:	netdev@...r.kernel.org
Subject: [PATCH net-next ] net: ipv4: memset addr before calling
 copy_to_user()

zero addr before calling copy_to_user()
 
Signed-off-by: Loganaden Velvindron <logan@...ndsys.com>
---
 net/ipv4/ip_sockglue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c
index c3c359a..d7a5a8b 100644
--- a/net/ipv4/ip_sockglue.c
+++ b/net/ipv4/ip_sockglue.c
@@ -1373,6 +1373,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
 	case IP_MULTICAST_IF:
 	{
 		struct in_addr addr;
+		memset(&addr, 0, sizeof(addr));
 		len = min_t(unsigned int, len, sizeof(struct in_addr));
 		addr.s_addr = inet->mc_addr;
 		release_sock(sk);
-- 
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ