summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron>2010-06-19 15:36:44 +0000
committertron <tron>2010-06-19 15:36:44 +0000
commit0364e8399a6711bd433fa0937fe77b51096066b7 (patch)
tree8cfe01824025fa4705350a4dbd0ca9a4edc18cb3
parent97ae796de984131a72f00109b77fb1cf38dc0e74 (diff)
downloadpkgsrc-0364e8399a6711bd433fa0937fe77b51096066b7.tar.gz
Pullup ticket #3150 - requested by taca
net/samba: security patch Revisions pulled up: - net/samba/Makefile 1.201 - net/samba/Makefile.mirrors 1.7 - net/samba/distinfo 1.74 - net/samba/patches/patch-ee 1.3 --- Module Name: pkgsrc Committed By: taca Date: Sat Jun 19 14:08:56 UTC 2010 Modified Files: pkgsrc/net/samba: Makefile Makefile.mirrors distinfo Added Files: pkgsrc/net/samba/patches: patch-ee Log Message: Add a patch to fix CVE-2010-2063. Bump PKGREVISION.
-rw-r--r--net/samba/Makefile4
-rw-r--r--net/samba/Makefile.mirrors6
-rw-r--r--net/samba/distinfo3
-rw-r--r--net/samba/patches/patch-ee40
4 files changed, 48 insertions, 5 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 37712e0dc12..5520878d479 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.198.2.1 2010/04/15 18:07:23 tron Exp $
+# $NetBSD: Makefile,v 1.198.2.2 2010/06/19 15:36:44 tron Exp $
.include "Makefile.mirrors"
DISTNAME= samba-${VERSION}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= net
MASTER_SITES= ${SAMBA_MIRRORS:=old-versions/}
diff --git a/net/samba/Makefile.mirrors b/net/samba/Makefile.mirrors
index e79e044bec7..a1fc23dc8f2 100644
--- a/net/samba/Makefile.mirrors
+++ b/net/samba/Makefile.mirrors
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.mirrors,v 1.6 2009/10/11 09:18:04 wiz Exp $
+# $NetBSD: Makefile.mirrors,v 1.6.4.1 2010/06/19 15:36:44 tron Exp $
#
# This Makefile fragment contains the mirror sites for fetching Samba.
@@ -23,4 +23,6 @@ SAMBA_MIRRORS= \
ftp://pl.samba.org/pub/unix/net/samba/ \
ftp://ftp.chg.ru/packages/samba/ \
ftp://ftp.oss.eznetsols.org/samba/ \
- ftp://us5.samba.org/pub/samba-ftp/
+ ftp://us5.samba.org/pub/samba-ftp/ \
+ ftp://download.samba.org/pub/samba/ \
+ http://download.samba.org/samba/ftp/
diff --git a/net/samba/distinfo b/net/samba/distinfo
index 8a24cf65810..cc191ff6036 100644
--- a/net/samba/distinfo
+++ b/net/samba/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.73 2010/02/09 16:08:36 drochner Exp $
+$NetBSD: distinfo,v 1.73.2.1 2010/06/19 15:36:44 tron Exp $
SHA1 (samba-3.0.37.tar.gz) = 5ec6bc6558b3c799f747eb49fbba019d5edf0cbd
RMD160 (samba-3.0.37.tar.gz) = 06b76ae22729e10c83d6af42d03b03ad69e49103
@@ -39,3 +39,4 @@ SHA1 (patch-cg) = 2755a019759826a39c3e201f6a0d1646e6dd2fba
SHA1 (patch-ch) = 3c4c404519154e294cee134ddb4d2b9c7d8e02a2
SHA1 (patch-ci) = d78298d0997cf7877cfe2411355fb6c61dec17f6
SHA1 (patch-da) = 2dddd250b2207d658b02ff43b46199ce4305b7f8
+SHA1 (patch-ee) = d52511dc7d065db7ba1464138c4bc85cfe2f0d59
diff --git a/net/samba/patches/patch-ee b/net/samba/patches/patch-ee
new file mode 100644
index 00000000000..dd710671f0a
--- /dev/null
+++ b/net/samba/patches/patch-ee
@@ -0,0 +1,40 @@
+$NetBSD: patch-ee,v 1.3.2.2 2010/06/19 15:36:44 tron Exp $
+
+Patch to fix CVE-2010-2063.
+
+--- smbd/process.c.orig 2009-09-30 12:21:56.000000000 +0000
++++ smbd/process.c
+@@ -1159,6 +1159,7 @@ int chain_reply(char *inbuf,char *outbuf
+ {
+ static char *orig_inbuf;
+ static char *orig_outbuf;
++ static int orig_size;
+ int smb_com1, smb_com2 = CVAL(inbuf,smb_vwv0);
+ unsigned smb_off2 = SVAL(inbuf,smb_vwv1);
+ char *inbuf2, *outbuf2;
+@@ -1178,6 +1179,13 @@ int chain_reply(char *inbuf,char *outbuf
+ /* this is the first part of the chain */
+ orig_inbuf = inbuf;
+ orig_outbuf = outbuf;
++ orig_size = size;
++ }
++
++ /* Validate smb_off2 */
++ if ((smb_off2 < smb_wct - 4) || orig_size < (smb_off2 + 4 - smb_wct)) {
++ exit_server_cleanly("Bad chained packet");
++ return -1;
+ }
+
+ /*
+@@ -1192,6 +1200,11 @@ int chain_reply(char *inbuf,char *outbuf
+ SSVAL(outbuf,smb_vwv1,smb_offset(outbuf+outsize,outbuf));
+ SCVAL(outbuf,smb_vwv0,smb_com2);
+
++ if (outsize <= smb_wct) {
++ exit_server_cleanly("Bad chained packet");
++ return -1;
++ }
++
+ /* remember how much the caller added to the chain, only counting stuff
+ after the parameter words */
+ chain_size += outsize - smb_wct;