[linux] 04/05: bluetooth: Validate socket address length in sco_sock_bind() (CVE-2015-8575)

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun Dec 27 19:27:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch jessie-security
in repository linux.

commit 9331ff38e496a63323ff6f1239af7b905a410a45
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sun Dec 27 14:27:24 2015 +0000

    bluetooth: Validate socket address length in sco_sock_bind() (CVE-2015-8575)
---
 debian/changelog                                   |  1 +
 ...alidate-socket-address-length-in-sco_sock.patch | 22 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index aba7664..532ae63 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ linux (3.16.7-ckt20-1+deb8u2) UNRELEASED; urgency=medium
   * [xen] pciback: Fix state validation in MSI control operations
     (CVE-2015-8551, CVE-2015-8852, XSA-157)
   * pptp: verify sockaddr_len in pptp_bind() and pptp_connect() (CVE-2015-8569)
+  * bluetooth: Validate socket address length in sco_sock_bind() (CVE-2015-8575)
 
  -- Ben Hutchings <ben at decadent.org.uk>  Sun, 27 Dec 2015 14:20:54 +0000
 
diff --git a/debian/patches/bugfix/all/bluetooth-validate-socket-address-length-in-sco_sock.patch b/debian/patches/bugfix/all/bluetooth-validate-socket-address-length-in-sco_sock.patch
new file mode 100644
index 0000000..5d83efc
--- /dev/null
+++ b/debian/patches/bugfix/all/bluetooth-validate-socket-address-length-in-sco_sock.patch
@@ -0,0 +1,22 @@
+From: "David S. Miller" <davem at davemloft.net>
+Date: Tue, 15 Dec 2015 15:39:08 -0500
+Subject: bluetooth: Validate socket address length in sco_sock_bind().
+Origin: https://git.kernel.org/linus/5233252fce714053f0151680933571a2da9cbfb4
+
+Signed-off-by: David S. Miller <davem at davemloft.net>
+---
+ net/bluetooth/sco.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/net/bluetooth/sco.c
++++ b/net/bluetooth/sco.c
+@@ -459,6 +459,9 @@ static int sco_sock_bind(struct socket *
+ 	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) {
diff --git a/debian/patches/series b/debian/patches/series
index 9f5d720..a9b09d6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -662,3 +662,4 @@ bugfix/all/xen-pciback-do-not-install-an-irq-handler-for-msi-in.patch
 bugfix/all/xen-pciback-for-xen_pci_op_disable_msi-x-only-disabl.patch
 bugfix/all/xen-pciback-don-t-allow-msi-x-ops-if-pci_command_mem.patch
 bugfix/all/pptp-verify-sockaddr_len-in-pptp_bind-and-pptp_conne.patch
+bugfix/all/bluetooth-validate-socket-address-length-in-sco_sock.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list