Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 133524
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sune Kloppenborg Jeppesen <jaervosz@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 133524 depends on: Show dependency tree
Bug 133524 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: 2006-05-16 12:19 0000
Vincent Danen from Mandriva discovered that the patch didn't work as expected
on 64 bit systems.

No complete fix is currently available.

------- Comment #1 From Thierry Carrez (RETIRED) 2006-05-30 11:02:30 0000 -------
We should check if we are indeed affected by usig the following testcase on a
64-bit system :

<?php
$a = str_repeat("A",438013);
$b = str_repeat("B",951140);
wordwrap($a,0,$b,0);
?>

------- Comment #2 From Luca Longinotti 2006-05-31 03:41:27 0000 -------
We are...
Output of that on a 32bit system (x86):

Fatal error: Possible integer overflow in memory allocation (438013 * 951141 +
1) in /home/chtekk/test.php on line 4

Output of that on a 64bit system (amd64):

Segmentation fault

So it seems to be detected in 32bit mode and PHP exits, while it just segfaults
on 64bit platforms...
Best regards, CHTEKK.

------- Comment #3 From Sune Kloppenborg Jeppesen 2006-06-01 01:06:00 0000 -------
Thx Luca. Waiting for upstream patch.

------- Comment #4 From Luca Longinotti 2006-07-14 09:25:25 0000 -------
Fixed in dev-lang/php-4.4.2-r6 and dev-lang/php-5.1.4-r4.
To security: please unrestrict.
To all arches: please stable. :)
Best regards, CHTEKK.

------- Comment #5 From Stefan Cornelius (RETIRED) 2006-07-16 12:12:06 0000 -------
Arches, please test and stable dev-lang/php-4.4.2-r6 and dev-lang/php-5.1.4-r4,
thx

------- Comment #6 From Jason Wever (RETIRED) 2006-07-16 15:13:26 0000 -------
SPARC doth be stable

------- Comment #7 From Tobias Scherbaum 2006-07-17 09:26:34 0000 -------
ppc stable

------- Comment #8 From Markus Rothe 2006-07-17 12:39:39 0000 -------
ppc64 stable

------- Comment #9 From Thomas Cort (RETIRED) 2006-07-18 11:21:41 0000 -------
alpha stable.

------- Comment #10 From Joshua Jackson 2006-07-18 13:57:10 0000 -------
x86 is gone..I need to come up with witty messages like sparc and everyone else
has ~_~;;

------- Comment #11 From Luca Longinotti 2006-07-18 16:11:56 0000 -------
amd64 stable.
Best regards, CHTEKK.

------- Comment #12 From Sune Kloppenborg Jeppesen 2006-07-22 23:52:57 0000 -------
Ready for GLSA update of GLSA 200605-08.

------- Comment #13 From Sune Kloppenborg Jeppesen 2006-07-24 11:33:15 0000 -------
Hmm not sure how to handle this. This is my proposal:

Unaffected:
>=5.1.4 arm hppa ppc s390 sh sparc x86 x86-fbsd
>=5.1.4-r4 alpha amd64 ia64 ppc64

Vulnerable:
<5.1.4 arm hppa ppc s390 sh sparc x86 x86-fbsd
<5.1.4-r4 alpha amd64 ia64 ppc64

@security please comment and I'll update the GLSA and send an errata.

------- Comment #14 From Gustavo Zacarias (RETIRED) 2006-07-24 11:36:06 0000 -------
I'd say sparc not vulnerable since only the kernel is 64-bit, userland is 32.
Userland @ 64 isn't supported yet. Thus from userland perspective the machine
acts as 32-bit.
And in the hppa case under most circumstances everything is 32-bit.

------- Comment #15 From Thierry Carrez (RETIRED) 2006-07-24 12:11:08 0000 -------
Comment #13 sounds good

------- Comment #16 From Sune Kloppenborg Jeppesen 2006-07-24 12:26:45 0000 -------
@Security please double check as this is a version and arch mess.

Updated in GLSAmaker with the following versions:

Unaffected packages:  
dev-lang/php >= 5.1.4 on arm hppa ppc s390 sh sparc x86 x86-fbsd
dev-lang/php *>= 4.4.2-r2 on arm hppa ppc s390 sh sparc x86 x86-fbsd
dev-lang/php >= 5.1.4-r4 on alpha amd64 ia64 ppc64
dev-lang/php *>= 4.4.2-r6 on alpha amd64 ia64 ppc64

Vulnerable packages:  
dev-lang/php < 5.1.4 on arm hppa ppc s390 sh sparc x86 x86-fbsd
dev-lang/php < 5.1.4-r4 on alpha amd64 ia64 ppc64

------- Comment #17 From Tim Yamin (RETIRED) 2006-07-25 14:31:17 0000 -------
(In reply to comment #16)
> @Security please double check as this is a version and arch mess.

Looks correct to me.

------- Comment #18 From René Nussbaumer 2006-07-29 02:04:24 0000 -------
does not affect us. Currently there's no 64 UL. The kernel can be 64 bit, but
it's not recommended.

------- Comment #19 From Sune Kloppenborg Jeppesen 2006-07-30 12:52:56 0000 -------
GLSA UPDATE 200605-08:02

Handling last stable marking back on bug #138180, since remaining arches are
not affected by this issue.

------- Comment #20 From Sune Kloppenborg Jeppesen 2006-07-30 12:53:49 0000 -------
Cleaning up.

------- Comment #21 From Sune Kloppenborg Jeppesen 2006-07-31 10:23:05 0000 -------
Now also actually remove arches.

------- Comment #22 From Ian Stakenvicius 2006-08-16 09:46:08 0000 -------
Getting a false-positive with GLSA on PHP-4.4.3 -- would it be better to get
around this by putting lower-bounds on vulnerability on a per-slot basis?  ie:

    <package name="dev-lang/php" auto="yes" arch="alpha amd64 ia64 ppc64">
      <unaffected range="ge">5.1.4-r4</unaffected>
      <vulnerable range="lt">5.1.4-r4</vulnerable>
      <vulnerable range="ge">5.0</vulnerable>
      <unaffected range="lt">5.0</unaffected>
      <unaffected range="ge">4.4.2-r6</unaffected>
      <vulnerable range="lt">4.4.2-r6</vulnerable>
    </package>

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