[packages/kernel/LINUX_3_4] - updated to 3.4.33 - add fix for CVE-2013-1763
baggins
baggins at pld-linux.org
Tue Feb 26 11:35:20 CET 2013
commit 7b14a70e8eb2b4aa52e4541c26abca4fdfe679f7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Feb 26 11:34:53 2013 +0100
- updated to 3.4.33
- add fix for CVE-2013-1763
kernel-CVE-2013-1763.patch | 32 ++++++++++++++++++++++++++++++++
kernel.spec | 6 ++++--
2 files changed, 36 insertions(+), 2 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index ef73a31..5825bf6 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -91,7 +91,7 @@
%define rel 1
%define basever 3.4
-%define postver .32
+%define postver .33
# __alt_kernel is list of features, empty string if none set
# _alt kernel is defined as: %{nil}%{?alt_kernel:-%{?alt_kernel}} (defined in rpm.macros)
@@ -138,7 +138,7 @@ Source0: http://www.kernel.org/pub/linux/kernel/v3.x/linux-%{basever}.tar.xz
# Source0-md5: 967f72983655e2479f951195953e8480
%if "%{postver}" != ".0"
Patch0: http://www.kernel.org/pub/linux/kernel/v3.x/patch-%{version}.bz2
-# Patch0-md5: cccb7722e4e1576adf90b12d1fea6901
+# Patch0-md5: 9fa275ca70a9bd53d666bf228f0482b4
%endif
Source3: kernel-autoconf.h
@@ -248,6 +248,7 @@ Patch400: kernel-virtio-gl-accel.patch
Patch2000: kernel-small_fixes.patch
Patch2001: kernel-pwc-uncompress.patch
Patch2003: kernel-regressions.patch
+Patch2004: kernel-CVE-2013-1763.patch
# http://git.kernel.org/?p=linux/kernel/git/jj/linux-apparmor.git;a=shortlog;h=refs/heads/v3.4-aa2.8
Patch5000: kernel-apparmor.patch
@@ -755,6 +756,7 @@ exit 0
%patch2000 -p1
%patch2001 -p1
#%patch2003 -p1
+%patch2004 -p1
# Do not remove this, please!
#%patch50000 -p1
diff --git a/kernel-CVE-2013-1763.patch b/kernel-CVE-2013-1763.patch
new file mode 100644
index 0000000..faca9ea
--- /dev/null
+++ b/kernel-CVE-2013-1763.patch
@@ -0,0 +1,32 @@
+Userland can send a netlink message requesting SOCK_DIAG_BY_FAMILY
+with a family greater or equal then AF_MAX -- the array size of
+sock_diag_handlers[]. The current code does not test for this
+condition therefore is vulnerable to an out-of-bound access opening
+doors for a privilege escalation.
+
+Signed-off-by: Mathias Krause <minipli at googlemail.com>
+---
+ net/core/sock_diag.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/net/core/sock_diag.c b/net/core/sock_diag.c
+index 602cd63..750f44f 100644
+--- a/net/core/sock_diag.c
++++ b/net/core/sock_diag.c
+@@ -121,6 +121,9 @@ static int __sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
+ if (nlmsg_len(nlh) < sizeof(*req))
+ return -EINVAL;
+
++ if (req->sdiag_family >= AF_MAX)
++ return -EINVAL;
++
+ hndl = sock_diag_lock_handler(req->sdiag_family);
+ if (hndl == NULL)
+ err = -ENOENT;
+--
+1.7.10.4
+
+--
+To unsubscribe from this list: send the line "unsubscribe netdev" in
+the body of a message to majordomo at vger.kernel.org
+More majordomo info at http://vger.kernel.org/majordomo-info.html
\ No newline at end of file
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/7b14a70e8eb2b4aa52e4541c26abca4fdfe679f7
More information about the pld-cvs-commit
mailing list