Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114428 - app-text/{poppler,xpdf,gpdf} several security holes (CAN-2005-319{1|2|3})
Summary: app-text/{poppler,xpdf,gpdf} several security holes (CAN-2005-319{1|2|3})
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Security
URL:
Whiteboard: A2? [glsa] jaervosz
Keywords:
: 131199 (view as bug list)
Depends on:
Blocks: 115848
  Show dependency tree
 
Reported: 2005-12-04 03:45 UTC by Carsten Lohrke (RETIRED)
Modified: 2019-12-08 22:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2005-12-04 03:45:42 UTC
Haven't seen any announcements yet, but there's a patch
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-12-04 03:45:42 UTC
Haven't seen any announcements yet, but there's a patch¹ for xpdf and poppler
cvs has the patches applied as well.


[1] ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.01pl1.patch
Comment 2 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-12-04 04:33:50 UTC
Printing please advise and double check what packages might me affected by  
this.  
  
Handling KDE packages on bug #114433 
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-04 10:41:15 UTC
poppler-0.4.2-r1 was just committed with this fix.
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-04 12:49:05 UTC
gpdf is bumped to 2.10.0-r2.  Targets are:
alpha amd64 hppa ia64 mips ppc ppc64 sparc x86
Comment 5 Luis Medinas (RETIRED) gentoo-dev 2005-12-04 15:15:34 UTC
same for xpdf-3.01-r2
Comment 6 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-12-04 21:54:57 UTC
Arches please test and mark stable.    
 
Target keywords are: 
 
poppler-0.4.2-r1.ebuild:KEYWORDS="alpha amd64 ~arm ~hppa ia64 ~mips ppc ppc64    
~sparc x86"    
xpdf-3.01-r2.ebuild:KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390   
sparc x86" 
gpdf-2.10.0-r2.ebuild:KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc64 sparc 
x86" 
  
Comment 7 Brent Baude (RETIRED) gentoo-dev 2005-12-05 07:44:21 UTC
I have marked poppler and xpdf ppc64 stable.  I had a runtime problem with gpdf;
getting the following error:

gpdf: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open
shared object file: No such file or directory

Did a little bit of looking but ran out of time.  Any other archs seeing this?
Comment 8 Gustavo Zacarias (RETIRED) gentoo-dev 2005-12-05 10:23:00 UTC
sparc stable on xpdf & gpdf.
Brent: that's because you probably did an upgrade to a newer gtk+ with the newer
cairo, which isn't backwards compatible. revdep-rebuild away and it'll get fixed.
Comment 9 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-05 10:44:01 UTC
There's a problem with marking poppler-0.4.2-r1 stable, because it depends on
cairo >= 0.5, which is not stable anywhere, and is not API compat with older
cairo versions.  The previous stable version didn't have a dependency on cairo.

Of the packages that depend on poppler, evince, kpdf, kdegraphics, and
popplerkit depend on newer versions than 0.3.0 (which is stable). 
abiword-plugins can use that version, but is not stable itself.  Maybe we could
just remove the old (stable) version of poppler?  This is a regression, but the
only thing in tree that can use it is not itself stable.
Comment 10 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-12-05 11:58:52 UTC
Back to ebuild until we get this sorted out. 
 
AFAIK only 0.4.2-r1 is fixed so we either have to mark that version stable or  
backport the fix for poppler. If the old stable versions of poppler have to  
go, they have to go.  
Comment 12 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-06 08:32:46 UTC
Update: I've backported the fix to poppler-0.3.0-r1, and removed the
intermediate versions of poppler.  Target for poppler-0.3.0-r1 is:
alpha amd64 ~arm ~hppa ia64 ~mips ppc ppc64 ~sparc x86

Amd64 is already done.
Comment 13 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-12-06 09:52:56 UTC
Back to stable. 
 
Printing is pdftohtml affected by this? 
Comment 14 Markus Rothe (RETIRED) gentoo-dev 2005-12-06 12:12:28 UTC
poppler-0.3.0-r1 is stable on ppc64. poppler-0.4.2-r1 is back to unstable. 
ranger didn't run into QA issue with cairo use flag, because it is masked on 
ppc64. (will check why this is..) 
 
I am currently compiling gpdf and its deps. will report back tomorrow, if I get 
the same error as ranger on his ppc64 machine. (I think I will, because the lib 
not found has cairo in name and thus won't exist if cairo use flag is masked?) 
Comment 15 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-06 12:49:09 UTC
Yes, pdftohtml is affected.  I've revbumped it to pdftohtml-0.36-r4.  Target
keywords is:
amd64 ppc ~ppc-macos ppc64 sparc x86
Comment 16 Mark Loeser (RETIRED) gentoo-dev 2005-12-06 18:39:22 UTC
app-text/{poppler,xpdf,gpdf} app-text/pdftohtml  are all stable on x86.  Let us
know if anything else needs to be stablized.
Comment 17 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-06 19:25:07 UTC
amd64 done.
Comment 18 Markus Rothe (RETIRED) gentoo-dev 2005-12-06 22:16:55 UTC
ppc64 finaly done 
Comment 19 Gustavo Zacarias (RETIRED) gentoo-dev 2005-12-07 05:19:53 UTC
pdftohtml sparc stable.
Comment 20 Stefan Cornelius (RETIRED) gentoo-dev 2005-12-07 09:48:41 UTC
Arches, please retest xpdf-3.01-r2 since a small glitch happened and the ebuild
didn't include the patch (thx to fump for the headsup)
Comment 21 Olivier Castan 2005-12-08 08:38:04 UTC
I think cups may be impacted too (as usual... and moreover Fedora has updated tetex)
I quickly looked at source cups-1.1.23/pdftops/Stream.cxx
and it looks like vulnerability in advisory
http://www.idefense.com/application/poi/display?id=342 is present (I did not
checked the others concerning Stream.cc) :

GBool DCTStream::readBaselineSOF() {
  int length;
  int prec;
  int i;
  int c;

  length = read16();
  prec = str->getChar();
  height = read16();
  width = read16();
  numComps = str->getChar();
  if (prec != 8) {
    error(getPos(), "Bad DCT precision %d", prec);
    return gFalse;
  }
  for (i = 0; i < numComps; ++i) {
    compInfo[i].id = str->getChar();
    c = str->getChar();
    compInfo[i].hSample = (c >> 4) & 0x0f;
    compInfo[i].vSample = c & 0x0f;
    compInfo[i].quantTable = str->getChar();
  }
  progressive = gFalse;
cups-1.1.23/pdftops/Stream.cxx lines 2883-2905
Comment 22 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-12-08 08:40:11 UTC
Printing please advise. 
Comment 23 Luis Medinas (RETIRED) gentoo-dev 2005-12-08 12:59:27 UTC
Arches please test xpdf-3.01-r3 and mark stable asap.
Sorry for this problem it's all my fault.
Comment 24 Simon Stelling (RETIRED) gentoo-dev 2005-12-09 08:55:34 UTC
xpdf-3.01-r3 stable on amd64. not removing us from CC yet because of comment 20
Comment 25 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-12-09 11:28:56 UTC
Stable on hppa, ppc.
Comment 26 Thierry Carrez (RETIRED) gentoo-dev 2005-12-11 09:50:59 UTC
Readding x86 sparc ppc64 to mark xpdf as per comment #22
Comment 27 Joshua Jackson (RETIRED) gentoo-dev 2005-12-11 12:43:59 UTC
Stable on x86 for xpdf, leaving attached as well for comment #20
Comment 28 Markus Rothe (RETIRED) gentoo-dev 2005-12-11 13:51:33 UTC
stable on ppc64 
Comment 29 Thierry Carrez (RETIRED) gentoo-dev 2005-12-12 03:17:46 UTC
OK, still missing :
alpha ia64 on poppler-0.3.0-r1
alpha arm ia64 mips s390 sparc on xpdf-3.01-r3
alpha ia64 mips ppc on gpdf-2.10.0-r2

Readding ppc for gpdf.
pdftohtml is all done. Opening a separate bug for CUPS.
Comment 30 Gustavo Zacarias (RETIRED) gentoo-dev 2005-12-12 05:38:35 UTC
xpdf-3.01-r3 sparc stable.
Comment 31 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-12-12 12:32:25 UTC
Stable on ppc.
Comment 32 Fernando J. Pereda (RETIRED) gentoo-dev 2005-12-14 03:34:51 UTC
Done for alpha

Sorry for the delay here.

Cheers,
Ferdy
Comment 33 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-12-15 23:59:24 UTC
GLSA 200512-08  
  
arm, ia64, mips, s390 don't forget to mark stable to benifit from the GLSA.  
 
Grrr somehow pdftohtml didn't make it to the GLSA. Fixing. 
Comment 34 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-12-16 00:06:15 UTC
Ok, not so fast. Either we could update the already released GLSA or issue a 
separate one as we did previously. Opinions? 
Comment 35 Olivier Castan 2005-12-16 02:22:06 UTC
Maybe I was not clear enough in comment #20, I was suggesting cups AND tetex may
be impacted:
Extracting tetex-src-3.0/xpdf/xpdf/Stream.cc from tetex-src-3.0.tar.gz, I found
the exact same code as in comment #20, so the same vulnerability applies. tetex
should be patched too...
Comment 36 Thierry Carrez (RETIRED) gentoo-dev 2005-12-16 04:42:22 UTC
jaervosz: I'd issue a separate one. But maybe wait for more (and/or tetex). Open
a separate bug and close this one.

Olivier: for tetex please open a separate bug (will do it if I have some time left)
Comment 37 Thierry Carrez (RETIRED) gentoo-dev 2005-12-16 08:59:19 UTC
Closing this one, opening a separate for pdftohtml
Comment 38 Stefan Cornelius (RETIRED) gentoo-dev 2005-12-17 05:53:50 UTC
We need to fix GLSA 200512-08 because of wrong poppler versions (should mention 0.3.0-r1, not 0.4.2-r1).
Comment 39 Thierry Carrez (RETIRED) gentoo-dev 2005-12-17 06:21:49 UTC
GLSA fixed.
Comment 40 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-25 10:25:46 UTC
*** Bug 131199 has been marked as a duplicate of this bug. ***