pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php5 Fixes for CVE-2006-4812 and CVE-2006-4625



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a4ec0d73dfe
branches:  trunk
changeset: 520494:2a4ec0d73dfe
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sun Oct 22 13:19:19 2006 +0000

description:
Fixes for CVE-2006-4812 and CVE-2006-4625
Bump nb

diffstat:

 lang/php5/Makefile         |   4 ++--
 lang/php5/distinfo         |   4 +++-
 lang/php5/patches/patch-aa |  21 +++++++++++++++++++++
 lang/php5/patches/patch-ab |  17 +++++++++++++++++
 4 files changed, 43 insertions(+), 3 deletions(-)

diffs (74 lines):

diff -r 43494e536d26 -r 2a4ec0d73dfe lang/php5/Makefile
--- a/lang/php5/Makefile        Sun Oct 22 13:16:41 2006 +0000
+++ b/lang/php5/Makefile        Sun Oct 22 13:19:19 2006 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2006/10/20 22:10:33 jdolecek Exp $
+# $NetBSD: Makefile,v 1.45 2006/10/22 13:19:19 adrianp Exp $
 
 PKGNAME=               php-${PHP_BASE_VERS}
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            lang
 
 HOMEPAGE=              http://www.php.net/
diff -r 43494e536d26 -r 2a4ec0d73dfe lang/php5/distinfo
--- a/lang/php5/distinfo        Sun Oct 22 13:16:41 2006 +0000
+++ b/lang/php5/distinfo        Sun Oct 22 13:19:19 2006 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.29 2006/08/28 12:17:10 taca Exp $
+$NetBSD: distinfo,v 1.30 2006/10/22 13:19:19 adrianp Exp $
 
 SHA1 (php-5.1.6/php-5.1.6.tar.bz2) = a20b946f1de0a8a35a8a6bf437adbba4e5448d27
 RMD160 (php-5.1.6/php-5.1.6.tar.bz2) = 7ac52f4674532397c982f6ced594b70dd17522af
 Size (php-5.1.6/php-5.1.6.tar.bz2) = 6454408 bytes
+SHA1 (patch-aa) = c1ba60ea1e8df9242b1f3c5078808c7968cf0de8
+SHA1 (patch-ab) = e91b34cd6cfadcc7f39e5832241ea711f1c0f827
 SHA1 (patch-ag) = 4ccb67ba6f5370b1d16b087e3e714de3e5ae604e
 SHA1 (patch-ah) = c7cbd4b9ea0796ea3b7491c2cffb6ddddc518587
 SHA1 (patch-aj) = 54812097499c81e5cb0196ab949cc86a4f24a9cc
diff -r 43494e536d26 -r 2a4ec0d73dfe lang/php5/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/patches/patch-aa        Sun Oct 22 13:19:19 2006 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1 2006/10/22 13:19:19 adrianp Exp $
+
+# CVE-2006-4812
+
+--- Zend/zend_alloc.c.orig     2006-08-10 18:16:24.000000000 +0100
++++ Zend/zend_alloc.c
+@@ -331,12 +331,12 @@ ZEND_API void *_ecalloc(size_t nmemb, si
+       int final_size = size*nmemb;
+       
+       HANDLE_BLOCK_INTERRUPTIONS();
+-      p = _emalloc(final_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
++      p = _safe_emalloc(nmemb, size, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
+       if (!p) {
+               HANDLE_UNBLOCK_INTERRUPTIONS();
+               return (void *) p;
+       }
+-      memset(p, 0, final_size);
++      memset(p, 0, size * nmemb);
+       HANDLE_UNBLOCK_INTERRUPTIONS();
+       return p;
+ }
diff -r 43494e536d26 -r 2a4ec0d73dfe lang/php5/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/patches/patch-ab        Sun Oct 22 13:19:19 2006 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2006/10/22 13:19:19 adrianp Exp $
+
+# CVE-2006-4625
+
+--- Zend/zend_ini.c.orig       2006-01-04 23:53:04.000000000 +0000
++++ Zend/zend_ini.c
+@@ -256,8 +256,8 @@ ZEND_API int zend_restore_ini_entry(char
+       zend_ini_entry *ini_entry;
+       TSRMLS_FETCH();
+ 
+-      if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==FAILURE) {
+-              return FAILURE;
++      if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==FAILURE ||
++          (stage == ZEND_INI_STAGE_RUNTIME && (ini_entry->modifiable & ZEND_INI_USER) == 0)) {                return FAILURE;
+       }
+ 
+       zend_restore_ini_entry_cb(ini_entry, stage TSRMLS_CC);



Home | Main Index | Thread Index | Old Index