<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>208001</bug_id>
          <alias>CVE-2007-4770</alias>
          <creation_ts>2008-01-29 07:34 0000</creation_ts>
          <short_desc>dev-libs/icu &lt;= 3.8.1 Regular Expressions Vulnerabilities (CVE-2007-(4770|4771))</short_desc>
          <delta_ts>2008-03-11 22:16:52 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://secunia.com/advisories/28575</bug_file_loc>
          <status_whiteboard>B1 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>206889</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>lars@chaotika.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>arm@gentoo.org</cc>
    
    <cc>h.mth@web.de</cc>
    
    <cc>openoffice@gentoo.org</cc>
    
    <cc>php-bugs@gentoo.org</cc>
    
    <cc>s390@gentoo.org</cc>
    
    <cc>sh@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>lars@chaotika.org</who>
            <bug_when>2008-01-29 07:34:24 0000</bug_when>
            <thetext>Will Drewry has reported some vulnerabilities in International Components for Unicode, which can be exploited by malicious people to cause a DoS (Denial of Service) or potentially compromise an application using the library.

1) A regular expression containing a back reference to capture group zero (\0) may reference random memory areas, which can be exploited to crash an application using the library.

2) The library does not limit the size of the backtracking stack. This can be exploited to cause a heap-based buffer overflow via certain specially crafted regular expressions.

The vulnerability is reported in version 3.8.1. Other versions may also be affected.

Solution:
Apply patch.
http://source.icu-project.org/repos/icu/icu/branches/maint/maint-3-8</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lars@chaotika.org</who>
            <bug_when>2008-01-29 07:37:00 0000</bug_when>
            <thetext>maintainers - please provide an updated ebuild</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-01-29 08:17:50 0000</bug_when>
            <thetext>*** Bug 207905 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-02-01 22:51:47 0000</bug_when>
            <thetext>ping</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-02-01 23:35:32 0000</bug_when>
            <thetext>I reproduced the 4771 issue on 3.6.1.
Caolan McNamara from RedHat backported the patches to 3.6:
  https://bugzilla.redhat.com/show_bug.cgi?id=429023

This bug also affects OpenOffice, as it currently uses an internal copy of icu.
OpenOffice herd, please advise here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-02-02 00:06:31 0000</bug_when>
            <thetext>OpenOffice, please try building against the (security patched) libicu 3.8.1-r1 here:  http://overlays.gentoo.org/svn/proj/php/migration/dev-libs/icu/

If that does not work, please patch the copy of icu.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>suka@gentoo.org</who>
            <bug_when>2008-02-02 18:27:58 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; OpenOffice, please try building against the (security patched) libicu 3.8.1-r1
&gt; here:  http://overlays.gentoo.org/svn/proj/php/migration/dev-libs/icu/
&gt; 
&gt; If that does not work, please patch the copy of icu.
&gt; 

I&apos;ve added a new revision (-r1) of openoffice-2.3.1 to portage, this uses external icu again (we had to back this out prior to stabilizing 2.3.1 as it was broken in OOo), works fine here on x86, other archs will have to test accordingly</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hoffie@gentoo.org</who>
            <bug_when>2008-02-02 21:56:35 0000</bug_when>
            <thetext>icu-3.8.1-r1 with the patch is in the tree now, thanks to jakub. I did not do any tests except from compiling (I haven&apos;t touched that package before anyway). I might try building OOo tomorrow, but certainly not today.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hoffie@gentoo.org</who>
            <bug_when>2008-02-02 22:24:27 0000</bug_when>
            <thetext>icu-3.6-r2 in the tree as well (with the patch from redhat). You probably want 3.8* stable for OpenOffice anyway, but I don&apos;t really know, ask jakub if in doubt. ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-02-03 08:54:55 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; icu-3.6-r2 in the tree as well (with the patch from redhat). You probably want
&gt; 3.8* stable for OpenOffice anyway, but I don&apos;t really know, ask jakub if in
&gt; doubt. ;)

Well, yes, definitely. It won&apos;t compile with ~icu-3.6. arches, please test and stabilize the following:

dev-libs/icu-3.6-r2 (will be hanging around for dev-libs/xerces-c-2.8.0 at least unless someone fixes the messy thing to work w/ icu-3.8.x)

dev-libs/icu-3.8.1-r1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ranger@gentoo.org</who>
            <bug_when>2008-02-03 18:51:14 0000</bug_when>
            <thetext>ppc and ppc64 done.  

dertobi123 tested ppc and I committed for his convenience.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-02-03 23:24:37 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2008-02-04 14:37:16 0000</bug_when>
            <thetext>x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-02-07 10:39:53 0000</bug_when>
            <thetext>alpha/ia64/sparc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tester@gentoo.org</who>
            <bug_when>2008-02-10 22:51:08 0000</bug_when>
            <thetext>amd64 done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-02-11 09:56:15 0000</bug_when>
            <thetext>(In reply to comment #14)
&gt; amd64 done

You missed dev-libs/icu-3.6-r2; thanks.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beandog@gentoo.org</who>
            <bug_when>2008-02-20 04:17:22 0000</bug_when>
            <thetext>(In reply to comment #15)
&gt; (In reply to comment #14)
&gt; &gt; amd64 done
&gt; 
&gt; You missed dev-libs/icu-3.6-r2; thanks.
&gt; 

done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-02-23 17:54:38 0000</bug_when>
            <thetext>Updated in release snapshot.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2008-03-11 22:16:52 0000</bug_when>
            <thetext>GLSA 200803-20</thetext>
          </long_desc>
      
    </bug>

</bugzilla>