Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1347502 > unrolled thread

[PATCH 4.4 001/342] af_iucv: Validate socket address length in iucv_sock_bind()

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-03-02 02:40 +0100
Last post2016-03-02 02:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.4 001/342] af_iucv: Validate socket address length in iucv_sock_bind() Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-03-02 02:40 +0100

#1347502 — [PATCH 4.4 001/342] af_iucv: Validate socket address length in iucv_sock_bind()

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-03-02 02:40 +0100
Subject[PATCH 4.4 001/342] af_iucv: Validate socket address length in iucv_sock_bind()
Message-ID<r83VE-sE-21@gated-at.bofh.it>
4.4-stable review patch.  If anyone has any objections, please let me know.

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

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

[ Upstream commit 52a82e23b9f2a9e1d429c5207f8575784290d008 ]

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Evgeny Cherkashin <Eugene.Crosser@ru.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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;

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web