Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 15126 invoked from network); 14 Jul 2007 17:03:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2007 17:03:41 -0000 Received: (qmail 6101 invoked by uid 500); 14 Jul 2007 17:03:43 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 6061 invoked by uid 500); 14 Jul 2007 17:03:42 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 6050 invoked by uid 99); 14 Jul 2007 17:03:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jul 2007 10:03:42 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jul 2007 10:03:39 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 46BA01A981A; Sat, 14 Jul 2007 10:03:19 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r556298 - in /httpd/httpd/branches/2.0.x: CHANGES STATUS server/mpm_common.c Date: Sat, 14 Jul 2007 17:03:18 -0000 To: cvs@httpd.apache.org From: sctemme@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070714170319.46BA01A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sctemme Date: Sat Jul 14 10:03:18 2007 New Revision: 556298 URL: http://svn.apache.org/viewvc?view=rev&rev=556298 Log: Backport of 2.0.x PID table problem fix Modified: httpd/httpd/branches/2.0.x/CHANGES httpd/httpd/branches/2.0.x/STATUS httpd/httpd/branches/2.0.x/server/mpm_common.c Modified: httpd/httpd/branches/2.0.x/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/CHANGES?view=diff&rev=556298&r1=556297&r2=556298 ============================================================================== --- httpd/httpd/branches/2.0.x/CHANGES [utf-8] (original) +++ httpd/httpd/branches/2.0.x/CHANGES [utf-8] Sat Jul 14 10:03:18 2007 @@ -6,6 +6,11 @@ server-status page and ExtendedStatus enabled, for browsers which perform charset "detection". Reported by Stefan Esser. [Joe Orton] + *) SECURITY: CVE-2007-3304 (cve.mitre.org) + scoreboard pid protection fixes -- the only fix for 2.0.x is + to ensure a valid positive pid is passed to apr_proc_wait(); + the MPMs do not kill children directly as in 2.2.x. + *) mod_so: Solve dev's confusion by reporting expected/seen module magic signatures when failing with a 'garbled' message, and solve user's confusion by pointing out 'perhaps compiled for a different Modified: httpd/httpd/branches/2.0.x/STATUS URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/STATUS?view=diff&rev=556298&r1=556297&r2=556298 ============================================================================== --- httpd/httpd/branches/2.0.x/STATUS (original) +++ httpd/httpd/branches/2.0.x/STATUS Sat Jul 14 10:03:18 2007 @@ -123,16 +123,6 @@ http://people.apache.org/~mjc/cve-2007-1863-2.0.patch +1: mjc, rpluem, jorton - * SECURITY: CVE-2007-3304 - scoreboard pid protection fixes -- the only fix for 2.0.x is - to ensure a valid positive pid is passed to apr_proc_wait(); - the MPMs do not kill children directly as in 2.2.x. - trunk commit: - http://svn.apache.org/viewvc?view=rev&rev=551843 - patch for 2.0.x: - http://people.apache.org/~jorton/httpd-2.0.x-CVE-2007-3304.patch - +1: jorton, jim, rpluem - PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ please place SVN revisions from trunk here, so it is easy to identify exactly what the proposed changes are! Add all new Modified: httpd/httpd/branches/2.0.x/server/mpm_common.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/server/mpm_common.c?view=diff&rev=556298&r1=556297&r2=556298 ============================================================================== --- httpd/httpd/branches/2.0.x/server/mpm_common.c (original) +++ httpd/httpd/branches/2.0.x/server/mpm_common.c Sat Jul 14 10:03:18 2007 @@ -110,6 +110,11 @@ apr_proc_t proc; apr_status_t waitret; + /* Ensure pid sanity. */ + if (pid < 1) { + return 1; + } + proc.pid = pid; waitret = apr_proc_wait(&proc, NULL, NULL, APR_NOWAIT); if (waitret != APR_CHILD_NOTDONE) {