Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 212211
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christian Hoffmann <hoffie@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 212211 depends on: Show dependency tree
Bug 212211 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-03 16:46 0000
Again, lots of crash fixes (think of DoS) and one security issue whose impact I
don't know:
  1. CVE-2008-0599 [1] (that's all what the commit message says; it must be
     related to wrong logic when handling paths in CGI environments)
  2. Crash in metaphone(), see upstream bug 44242 [2].
     Looks like a buffer overflow, but only off-by-one and there will simply
     be written a ASCIIZ after the end of the allocated space -- this should
     not allow for code execution, imo, but I'm not exactly sure.
     This function might take user input in web apps, so it would be
exploitable
     remotely.
  3. Crash in filter extension when using callbacks.
     Not many details except for the commit [3], doesn't look like a typical
     function which takes user input, so rather the problem of the developer
     and not a typical remote DoS problem.
  4. Crash in PDO when using "wrong" prepared statements, upstream
     bug 44200 [4]
     IMO this only happens when the code author already has wrong code, so not
     high priority either
  5. Crash in strftime() with large negative values, upstream bug 44216 [5].
     Some web apps might take such time stamps as user input => remote DoS
  6. Crash when using syslog + USE=threads (ZTS), upstream bug 44152 [6]
     Does not look like a controllable DoS and only seems to affect some very
     specific setups.
  7. Crash in PDO by passing invalid args to setAttribute, upstream
     bug 44159 [7].
     I don't think one is supposed to pass user input to this function => not
     a remote DoS problem.
  8. Crash in MySQLi extension [8], no clue about circumstances / other
     impacts


Our snapshot (5.2.5_p*) *is* vulnerable to these problems, 5.2.6_rc1 (which I
committed some hours ago) has all the fixes.

As always, blame upstream, don't blame me for the amount of possible security
problems. =)

[1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0599
[2] http://bugs.php.net/bug.php?id=44242
[3]
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/filter.c?r1=1.52.2.41&r2=1.52.2.42&diff_format=u
[4] http://bugs.php.net/bug.php?id=44200
[5] http://bugs.php.net/bug.php?id=44216
[6] http://bugs.php.net/bug.php?id=44152
[7] http://bugs.php.net/bug.php?id=44159
[8]
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/mysqli.c?r1=1.72.2.16.2.23&r2=1.72.2.16.2.24&diff_format=u

------- Comment #1 From Robert Buchholz 2008-03-03 18:18:40 0000 -------
/me blames upstream.

Arches, please test and mark stable:
=dev-lang/php-5.2.6_rc1
Target keywords : "alpha amd64 arm hppa ia64 ppc ppc64 release s390 sh sparc
x86"

------- Comment #2 From Markus Meier 2008-03-03 20:55:44 0000 -------
x86 stable

------- Comment #3 From Jeroen Roovers 2008-03-03 23:58:39 0000 -------
Stable for HPPA.

------- Comment #4 From Raúl Porcel 2008-03-04 12:26:47 0000 -------
alpha/ia64/sparc stable

------- Comment #5 From Markus Rothe 2008-03-04 20:35:48 0000 -------
ppc64 stable

------- Comment #6 From Robert Buchholz 2008-03-05 20:35:10 0000 -------
Sorry for the dance again, but a new php revbump fixes regressions, see
ChangeLog.

Arches, please test and mark stable:
=dev-lang/php-5.2.6_rc1-r1
Target keywords : "alpha amd64 arm hppa ia64 ppc ppc64 release s390 sh sparc
x86"

------- Comment #7 From Brent Baude 2008-03-06 03:02:57 0000 -------
ppc64 done

------- Comment #8 From Jeroen Roovers 2008-03-06 15:06:32 0000 -------
Stable for HPPA.

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   31
Exts tested     :   48
---------------------------------------------------------------------

Number of tests : 5452              3958
Tests skipped   : 1494 ( 27.4%) --------
Tests warned    :    1 (  0.0%) (  0.0%)
Tests failed    :   84 (  1.5%) (  2.1%)
Tests passed    : 3873 ( 71.0%) ( 97.9%)
---------------------------------------------------------------------
Time taken      : 5056 seconds
=====================================================================

------- Comment #9 From Raúl Porcel 2008-03-06 15:59:08 0000 -------
alpha/ia64/sparc stable

------- Comment #10 From Dawid Węgliński 2008-03-07 13:26:18 0000 -------
x86 stable

------- Comment #11 From Peter Volkov 2008-03-08 19:33:50 0000 -------
amd64 stable.

------- Comment #12 From Tobias Scherbaum 2008-03-09 08:07:50 0000 -------
ppc stable

------- Comment #13 From Peter Volkov 2008-03-09 10:27:08 0000 -------
Fixed in release snapshot.

------- Comment #14 From Robert Buchholz 2008-05-06 15:31:47 0000 -------
Name:      CVE-2008-0599
cgi_main.c in PHP before 5.2.6 does not properly calculate the length of
PATH_TRANSLATED, which has unknown impact and attack vectors.

------- Comment #15 From Tobias Heinlein 2008-11-16 16:14:45 0000 -------
GLSA 200811-05, thanks everyone, especially hoffie.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug