<?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>192472</bug_id>
          
          <creation_ts>2007-09-14 00:24 0000</creation_ts>
          <short_desc>x11-libs/qt convertToUnicode Off-by-one Buffer overflow (CVE-2007-4137)</short_desc>
          <delta_ts>2007-10-25 22:13:23 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://trolltech.com/company/newsroom/announcements/press.2007-09-03.7564032119</bug_file_loc>
          <status_whiteboard>A2 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>192134</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rbu@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>christian.korff@gmail.com</cc>
    
    <cc>kde@gentoo.org</cc>
    
    <cc>mips@gentoo.org</cc>
    
    <cc>qt@gentoo.org</cc>
    
    <cc>sebastian_ml@gmx.net</cc>

      

      
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-09-14 00:24:30 0000</bug_when>
            <thetext>Dirk Mueller (KDE) discovered an Off-by-one Buffer overflow that could lead to the execution of arbitrary code or denial of service for Qt applications using malicious unicode input.

All versions in portage are affected. Patches here:
Qt3: http://dist.trolltech.com/developer/download/175791_3.diff
Qt4: http://dist.trolltech.com/developer/download/175791_4.diff

Upstream will release these patches as part of their next maintenance release.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-09-14 00:26:34 0000</bug_when>
            <thetext>Setting whiteboard and cc&apos;ing maintainers.

qt, please provide a updated ebuilds.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>keytoaster@gentoo.org</who>
            <bug_when>2007-09-14 16:06:02 0000</bug_when>
            <thetext>CC&apos;ing kde herd as per Philantrop&apos;s request.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@gentoo.org</who>
            <bug_when>2007-09-14 16:50:09 0000</bug_when>
            <thetext>my vote is to patch qt3 and qt4 and directly bump to stable without having to call in the arch teams.  there&apos;s nothing intrusive about these patches whatsoever that would necessitate needing the arch teams to need to test.

does anyone object to that?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-09-14 17:26:49 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; does anyone object to that?

May I say that I *agree* with your suggestion instead? ;)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-09-14 20:35:44 0000</bug_when>
            <thetext>given the content of the patchs, I agree too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-09-14 21:04:10 0000</bug_when>
            <thetext>Quoting Dirk Mueller who discovered this:
    It is not exploitable with Qt 4.x or above because there is an  
    additional QChar(0) being allocated in QString, however it is still a  
    bug there, as the array returned by utf16() etc is no longer  
    terminated properly.

So this needs fixing for Qt3, but not necessarily for Qt4. If we do a stable bump, fixing it for Qt4 too doesn&apos;t cost too much either though.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@gentoo.org</who>
            <bug_when>2007-09-14 21:31:06 0000</bug_when>
            <thetext>ok, I&apos;ve added qt-3.3.8-r4 and qt-4.3.1-r1 applying both of these patches

ppc is the only non-stable arch we need for 4.3.1-r1.  mips is unstable for 3.3.8-r*, but we haven&apos;t heard from them in years so I doubt notifying of them of this is going to help.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-09-14 21:50:17 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; ppc is the only non-stable arch we need for 4.3.1-r1.  mips is unstable for
&gt; 3.3.8-r*, but we haven&apos;t heard from them in years so I doubt notifying of them
&gt; of this is going to help.

Thanks a lot for taking care so fast.

I&apos;ll leave a comment at bug 192134 for ppc.
mips, please stabilize qt-3.3.8-r4 if appropriate.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-09-14 21:52:25 0000</bug_when>
            <thetext>(ugh)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-09-15 10:45:49 0000</bug_when>
            <thetext>All arches but mips are stable. This is ready for a GLSA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sebastian_ml@gmx.net</who>
            <bug_when>2007-09-15 11:06:27 0000</bug_when>
            <thetext>Anyone checked whether these patches collide with the utf8-bug patches? I&apos;m wondering because they do work on the same code snippet.

Regards
Sebastian</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@gentoo.org</who>
            <bug_when>2007-09-15 11:21:29 0000</bug_when>
            <thetext>they both apply properly on my machine</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>christian.korff@gmail.com</who>
            <bug_when>2007-09-15 18:28:04 0000</bug_when>
            <thetext>Will there be also a patch for 3.3.4?

I depend on 3.3.4 since qt 3.3.8 and Gentoo hardened have some problems. see bug #175996 for a description. So I would very happy for a supported 3.3.4 ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-09-16 04:02:08 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Will there be also a patch for 3.3.4?

That version is also unfixed for bug 172746 and bug 185446, so we either do this right or not at all.
Besides that, it&apos;s the decision of the qt herd / the hardened people.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@gentoo.org</who>
            <bug_when>2007-09-25 13:02:13 0000</bug_when>
            <thetext>I&apos;m leaving it open to the hardened folks.  Any patching that needs to be done to 3.3.4 is fine by me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-10-25 22:13:23 0000</bug_when>
            <thetext>GLSA 200710-28 - sorry for the dealy</thetext>
          </long_desc>
      
    </bug>

</bugzilla>