]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- added fix for CVE-2013-1763 auto/th/kernel-3.7.9-2
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 26 Feb 2013 10:40:13 +0000 (11:40 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 26 Feb 2013 10:40:13 +0000 (11:40 +0100)
- rel 2

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 97d035fd3d52a347b01db7d256edef6ce1aa5be1..24a03c50922af9fa87be7631e3fa1e33e4aa7e94 100644 (file)
@@ -66,7 +66,7 @@
 %define                have_pcmcia     0
 %endif
 
-%define                rel             1
+%define                rel             2
 %define                basever         3.7
 %define                postver         .9
 
@@ -227,6 +227,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.5-aa2.8
 Patch5000:     kernel-apparmor.patch
@@ -708,6 +709,7 @@ cd linux-%{basever}
 %patch2000 -p1
 %patch2001 -p1
 #%patch2003 -p1
+%patch2004 -p1
 
 # Do not remove this, please!
 #%%patch50000 -p1
This page took 0.066911 seconds and 4 git commands to generate.