[linux] 02/02: bluetooth: Validate socket address length in sco_sock_bind() (CVE-2015-8575)
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Mon Dec 28 00:03:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch squeeze-security
in repository linux.
commit f31caa5beabf705b52ef78984ffaa3e26fe47674
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Sun Dec 27 20:13:22 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/48squeeze18 | 1 +
3 files changed, 24 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index f6e1f88..4d7318e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
linux-2.6 (2.6.32-48squeeze18) UNRELEASED; urgency=medium
* net: add validation for the socket syscall protocol argument (CVE-2015-8543)
+ * bluetooth: Validate socket address length in sco_sock_bind() (CVE-2015-8575)
-- Ben Hutchings <ben at decadent.org.uk> Sun, 27 Dec 2015 20:06:05 +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..a99b5ed
--- /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
+@@ -463,6 +463,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/48squeeze18 b/debian/patches/series/48squeeze18
index ba6014c..a05ec9e 100644
--- a/debian/patches/series/48squeeze18
+++ b/debian/patches/series/48squeeze18
@@ -1 +1,2 @@
+ bugfix/all/net-add-validation-for-the-socket-syscall-protocol-a.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