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-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160301234528.040481709@linuxfoundation.org>
Date:	Tue, 01 Mar 2016 23:53:46 +0000
From:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To:	<linux-kernel@...r.kernel.org>
Cc:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	<stable@...r.kernel.org>, Ursula Braun <ursula.braun@...ibm.com>,
	Dmitry Vyukov <dvyukov@...gle.com>,
	Evgeny Cherkashin <Eugene.Crosser@...ibm.com>,
	"David S. Miller" <davem@...emloft.net>
Subject: [PATCH 4.4 001/342] af_iucv: Validate socket address length in iucv_sock_bind()

4.4-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Ursula Braun <ursula.braun@...ibm.com>

[ Upstream commit 52a82e23b9f2a9e1d429c5207f8575784290d008 ]

Signed-off-by: Ursula Braun <ursula.braun@...ibm.com>
Reported-by: Dmitry Vyukov <dvyukov@...gle.com>
Reviewed-by: Evgeny Cherkashin <Eugene.Crosser@...ibm.com>
Signed-off-by: David S. Miller <davem@...emloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
 net/iucv/af_iucv.c |    3 +++
 1 file changed, 3 insertions(+)

--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
@@ -708,6 +708,9 @@ static int iucv_sock_bind(struct socket
 	if (!addr || addr->sa_family != AF_IUCV)
 		return -EINVAL;
 
+	if (addr_len < sizeof(struct sockaddr_iucv))
+		return -EINVAL;
+
 	lock_sock(sk);
 	if (sk->sk_state != IUCV_OPEN) {
 		err = -EBADFD;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ