]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- updated to 3.4.33 auto/th/kernel-longterm-3.4.33-1
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 26 Feb 2013 10:34:53 +0000 (11:34 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 26 Feb 2013 10:34:53 +0000 (11:34 +0100)
- add fix for CVE-2013-1763

kernel-CVE-2013-1763.patch [new file with mode: 0644]
kernel.spec

diff --git a/kernel-CVE-2013-1763.patch b/kernel-CVE-2013-1763.patch
new file mode 100644 (file)
index 0000000..faca9ea
--- /dev/null
@@ -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@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@vger.kernel.org
+More majordomo info at  http://vger.kernel.org/majordomo-info.html
\ No newline at end of file
index ef73a310c07ef371378df03bf074083499a19905..5825bf6db4e2f265c1709b1240760df72514ee86 100644 (file)
@@ -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
This page took 0.105735 seconds and 4 git commands to generate.