<?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>162460</bug_id>
          
          <creation_ts>2007-01-17 01:18 0000</creation_ts>
          <short_desc>app-office/(kword|koffice), kde-base/kpdf, app-text/(xpdf|poppler): CVE-2007-0104 xpdf code vulnerability</short_desc>
          <delta_ts>2007-04-13 19:04:20 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://kde.org/info/security/advisory-20070115-1.txt</bug_file_loc>
          <status_whiteboard>B3 [noglsa] Falco</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>166246</dependson>
          <blocked>134924</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>flameeyes@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>kde@gentoo.org</cc>
    
    <cc>mips@gentoo.org</cc>
    
    <cc>printing@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-01-17 01:18:53 0000</bug_when>
            <thetext>KDE Security Advisory: kpdf/kword/xpdf denial of service vulnerability
Original Release Date: 2007-01-15
URL: http://www.kde.org/info/security/advisory-20070115-1.txt

0. References
        CVE-2007-0104


1. Systems affected:

        KDE 3.2.0 up to including KDE 3.5.5. KDE 3.5.6 and newer is
        not affected. KOffice 1.2 and newer contain the same code.


2. Overview:

        kpdf, the KDE pdf viewer, shares code with xpdf. xpdf contains
        a vulnerability that can cause denial of service (infinite loop)
        via a PDF file that contains a crafted catalog dictionary
        or a crafted Pages attribute that references an invalid page
        tree node.


3. Impact:

        Remotely supplied pdf files can be used to disrupt the kpdf
        viewer on the client machine.


4. Solution:

        Source code patches have been made available which fix these
        vulnerabilities. Contact your OS vendor / binary package provider
        for information about how to obtain updated binary packages.


5. Patch:

        Patch for KOffice 1.2.1 and newer is available from 
        ftp://ftp.kde.org/pub/kde/security_patches :

        dc28881c39f11c040f8c942e4af238d1  koffce-xpdf-CVE-2007-0104.diff

        Patch for KDE 3.3.2 and newer is available from 
        ftp://ftp.kde.org/pub/kde/security_patches :

        a690ce46117257609c2b43485ea4d0d7  post-3.5.5-kdegraphics-CVE-2007-0104.diff

        Patch for KDE 3.2.3 and newer is available from 
        ftp://ftp.kde.org/pub/kde/security_patches :

        c2d4c2aa3aa990e2dba00f782a140a1b  post-3.2.3-kdegraphics-CVE-2007-0104.diff



Note: our kpdf/kdegraphics is *not* vulnerable, as we use Kubuntu&apos;s Poppler patch.

And it&apos;s fixed in kword-1.5.2-r1, kword-1.6.1-r1, koffice-1.5.2-r2 and koffice-1.6.1-r1.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dercorny@gentoo.org</who>
            <bug_when>2007-01-17 08:44:37 0000</bug_when>
            <thetext>client DoS, i tend to say we dont care</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-01-22 11:21:53 0000</bug_when>
            <thetext>Most advisories (Securityfocus[1], CVE[2], x-force[3], original advisory[4]) mention the possible execution of arbitrary code (buffer overflows, ...). And xpdf seems affected too. Ccing printing.

[1] http://xforce.iss.net/xforce/xfdb/31364
[2] http://xforce.iss.net/xforce/xfdb/31364
[3] http://xforce.iss.net/xforce/xfdb/31364
[4] http://projects.info-pull.com/moab/MOAB-06-01-2007.html
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-02-10 19:24:34 0000</bug_when>
            <thetext>ping printing</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-02-10 19:50:33 0000</bug_when>
            <thetext>If you want, kdegraphics and kpdf can be handled by stabling the latest releases for 3.5.5: they both are patched to fix this issue, as they don&apos;t use poppler anymore.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-02-10 20:04:24 0000</bug_when>
            <thetext>kpdf in KDE before 3.5.5 is also affected
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-02-10 20:15:33 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; kpdf in KDE before 3.5.5 is also affected
&gt; 


Our kpdf-3.5.5 uses the vulnerable poppler. 

Since we have no response from printing team about a poppler upgrade, we have to fix our KDE ports.

Arches, please test and mark stable if appropriate, thanks.

kpdf-3.5.5-r1
kword-1.5.2-r1
koffice-1.5.2-r2
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-02-10 20:16:46 0000</bug_when>
            <thetext>And kdegraphics-3.5.5-r2.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2007-02-10 20:32:32 0000</bug_when>
            <thetext>poppler patch committed, sorry for being late and feel free to patch such things when I am irregularly looking at my mail.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-02-10 21:06:27 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; poppler patch committed, sorry for being late and feel free to patch such
&gt; things when I am irregularly looking at my mail.
&gt; 

Good, thanks.


Arches, please also test and stabilize poppler-0.5.4-r1 . KDE stabilizations are not a priority: if a KDE stabilization fails, the poppler stabilization will be sufficient from the security point of view.

ARM, HPPA, MIPS and S390, you&apos;re only concerned by poppler, not by KDE.

A fixed xpdf is still missing but i bet it&apos;s only a question of time.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-02-10 21:31:46 0000</bug_when>
            <thetext>xpdf won&apos;t need to be changed since it calls poppler.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-02-11 00:19:12 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; Arches, please test and mark stable if appropriate, thanks.
&gt; koffice-1.5.2-r2

 We have bug 166246 which requests stabilisation for KOffice 1.6.* series.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-02-11 09:41:43 0000</bug_when>
            <thetext>poppler and kpdf stable on x86, adding koffice 1.6.1-r1 stabilisation bug as dependency</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-02-11 11:09:32 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt;
&gt;  We have bug 166246 which requests stabilisation for KOffice 1.6.* series.
&gt; 

Thanks,

I hope that fix the pdf vulnerability, in such case stabilizing koffice-1.6 is sufficient for koffice</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-02-11 22:00:12 0000</bug_when>
            <thetext>KOffice monolithic and meta stable, kdegraphics stable, so removing x86</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-02-12 04:15:38 0000</bug_when>
            <thetext>app-text/poppler, app-office/koffice and kde-base/kdegraphics stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2007-02-12 14:08:10 0000</bug_when>
            <thetext>sparc stable: poppler-0.5.4-r1, kpdf-3.5.5-r1, kdegraphics-3.5.5-r2, kword-1.5.2-r1, koffice-1.5.2-r2.
Gotta check some issues with koffice-1.6.1 before it can go stable.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cryos@gentoo.org</who>
            <bug_when>2007-02-13 01:03:49 0000</bug_when>
            <thetext>koffice-1.6.1 and friends are all stable on amd64, as are kpdf, kdegraphics and poppler as specified in the previous comments. Removing amd64.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-02-13 10:00:04 0000</bug_when>
            <thetext>these are stable on ppc64 now:

app-text/poppler-0.5.4-r1
kde-base/kpdf-3.5.5-r1
kde-base/kdegraphics-3.5.5-r2
dev-lang/swig-1.3.31
media-libs/lcms-1.15
app-office/koffice-1.6.1-r1
app-office/koffice-data-1.6.1
app-office/koffice-libs-1.6.1
app-office/kexi-1.6.1
app-office/kchart-1.6.1
app-office/kplato-1.6.1
app-office/kivio-1.6.1
app-office/kformula-1.6.1
app-office/kugar-1.6.1
app-office/krita-1.6.1
app-office/kpresenter-1.6.1
app-office/karbon-1.6.1
app-office/kspread-1.6.1
app-office/kword-1.6.1-r1
app-office/koshell-1.6.1
app-office/koffice-meta-1.6.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kloeri@gentoo.org</who>
            <bug_when>2007-02-14 12:21:37 0000</bug_when>
            <thetext>IA64 done.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-02-14 19:06:44 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kloeri@gentoo.org</who>
            <bug_when>2007-02-15 11:03:37 0000</bug_when>
            <thetext>Alpha done.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-03-09 22:20:32 0000</bug_when>
            <thetext>oops, late. GLSA or no?

CVE says &quot;unknown impact&quot; -&gt; i tend to vote &quot;no&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-03-12 09:46:49 0000</bug_when>
            <thetext>if execution of arbitrary code is confirmed, i tend to vote yes.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-03-13 23:04:47 0000</bug_when>
            <thetext>(In reply to comment #23)
&gt; if execution of arbitrary code is confirmed, i tend to vote yes.
&gt; 

AFAICT it&apos;s not

Security please comment</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-03-14 07:48:52 0000</bug_when>
            <thetext>I tend to vote NO GLSA. At least the KDE advisory says infinite loop only.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2007-03-15 21:27:00 0000</bug_when>
            <thetext>closing then, feel free to reopen if you disagree</thetext>
          </long_desc>
      
    </bug>

</bugzilla>