summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@fedoraproject.org>2015-12-18 08:54:38 -0500
committerJosh Boyer <jwboyer@fedoraproject.org>2015-12-18 08:59:41 -0500
commitcdfa7cd82ceb55c48ae6c0170d8a6d438e100715 (patch)
tree2d9ee9deeab588536457ca14cd82a64ad7ab7f37
parent702b18281517e75aa04959fa6f23794adab3fe43 (diff)
downloadkernel-cdfa7cd82ceb55c48ae6c0170d8a6d438e100715.tar.gz
kernel-cdfa7cd82ceb55c48ae6c0170d8a6d438e100715.tar.xz
kernel-cdfa7cd82ceb55c48ae6c0170d8a6d438e100715.zip
CVE-2015-8575 information leak in sco_sock_bind (rhbz 1292840 1292841)
-rw-r--r--bluetooth-Validate-socket-address-length-in-sco_sock.patch27
-rw-r--r--kernel.spec6
2 files changed, 33 insertions, 0 deletions
diff --git a/bluetooth-Validate-socket-address-length-in-sco_sock.patch b/bluetooth-Validate-socket-address-length-in-sco_sock.patch
new file mode 100644
index 000000000..1ee23fcf4
--- /dev/null
+++ b/bluetooth-Validate-socket-address-length-in-sco_sock.patch
@@ -0,0 +1,27 @@
+From 5233252fce714053f0151680933571a2da9cbfb4 Mon Sep 17 00:00:00 2001
+From: "David S. Miller" <davem@davemloft.net>
+Date: Tue, 15 Dec 2015 15:39:08 -0500
+Subject: [PATCH] bluetooth: Validate socket address length in sco_sock_bind().
+
+Signed-off-by: David S. Miller <davem@davemloft.net>
+---
+ net/bluetooth/sco.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
+index fe129663bd3f..f52bcbf2e58c 100644
+--- a/net/bluetooth/sco.c
++++ b/net/bluetooth/sco.c
+@@ -526,6 +526,9 @@ static int sco_sock_bind(struct socket *sock, struct sockaddr *addr,
+ if (!addr || addr->sa_family != AF_BLUETOOTH)
+ return -EINVAL;
+
++ if (addr_len < sizeof(struct sockaddr_sco))
++ return -EINVAL;
++
+ lock_sock(sk);
+
+ if (sk->sk_state != BT_OPEN) {
+--
+2.5.0
+
diff --git a/kernel.spec b/kernel.spec
index 0cc7deb1d..e1e9d1128 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -642,6 +642,9 @@ Patch600: pptp-verify-sockaddr_len-in-pptp_bind-and-pptp_conne.patch
Patch601: vrf-fix-memory-leak-on-registration.patch
+#CVE-2015-8575 rhbz 1292840 1292841
+Patch602: bluetooth-Validate-socket-address-length-in-sco_sock.patch
+
# END OF PATCH DEFINITIONS
%endif
@@ -2085,6 +2088,9 @@ fi
#
#
%changelog
+* Fri Dec 18 2015 Josh Boyer <jwboyer@fedoraproject.org>
+- CVE-2015-8575 information leak in sco_sock_bind (rhbz 1292840 1292841)
+
* Thu Dec 17 2015 Justin M. Forbes <jforbes@fedoraproject.org>
- Fix for memory leak in vrf