Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 99769
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
xpdf-font-optimize.dif xpdf-font-optimize.dif patch Sune Kloppenborg Jeppesen 2005-07-21 03:09 0000 28.00 KB Details | Diff
xpdf-3.00-ttf-cid-fix.dif xpdf-3.00-ttf-cid-fix.dif patch Thierry Carrez (RETIRED) 2005-08-04 08:46 0000 12.18 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 99769 depends on: Show dependency tree
Bug 99769 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: 2005-07-21 03:07 0000
Reported on V-S, waiting for further information before opening more bugs for 
pdftohtml,kpdf, koffice,cups, gpdf and possibly others. 
 
The attached PDF file causes xpdf3 and clones (like newer kpdfs) to fill  
up /tmp with a temporary file that is growing until the filesystem is full.  
  
xpdf2 and clones are apparently not affected.  
  
I have attached the patch that detects the brokenness inside the PDF.  
  
It is not fully clear to me if this issue is caused by patch applied by  
us or not, but I think it is a general upstream xpdf3 issue.

------- Comment #1 From Sune Kloppenborg Jeppesen 2005-07-21 03:09:35 0000 -------
Created an attachment (id=63959) [details]
xpdf-font-optimize.dif

Patch from Marcus Meissner <meissner@suse.de>

------- Comment #2 From Sune Kloppenborg Jeppesen 2005-07-25 11:54:08 0000 -------
Heinrich please provide an updated ebuild.       
       
Opening other bugs for apps that possibly include xpdf code:       
       
app-text/pdftohtml lanius bug #100261 
kde-base/kdegraphics|app-office/koffice carlo bug #100263 
net-print/cups lanius bug #100264 
app-text/gpdf obz bug #100265 

------- Comment #3 From Sune Kloppenborg Jeppesen 2005-08-03 22:02:45 0000 -------
Adding arch security liaisons to CC. 

------- Comment #4 From Thierry Carrez (RETIRED) 2005-08-04 08:46:04 0000 -------
Created an attachment (id=65072) [details]
xpdf-3.00-ttf-cid-fix.dif

Extra patch from SuSE...

Apparently it may need this other patch applied first. Not sure KDE needs it
(it may already be in) which would explain why kpdf is the only one working
with the first patch.

------- Comment #5 From Carsten Lohrke 2005-08-04 09:46:50 0000 -------
The applied KDE patches seem to be fine, but are prelimimary. KDE svn looks
more
like this patch, when you measure in changed function signatures.

------- Comment #6 From Guy Martin 2005-08-05 01:58:43 0000 -------
Adding KillerFox. He's the security guy on hppa and he will handle this bug.

------- Comment #7 From Thierry Carrez (RETIRED) 2005-08-06 11:47:48 0000 -------
This will be made public on Tuesday. Would be a good thing to have patched
versions at that date...

------- Comment #8 From Jason Wever (RETIRED) 2005-08-06 12:57:57 0000 -------
The initial description talks about an attached PDF but there is no PDF
attached.  Where can I find this to test with?

------- Comment #9 From Thierry Carrez (RETIRED) 2005-08-06 13:50:59 0000 -------
> Where can I find this to test with?

You can find the test PDF at ~koon/foo.pdf on toucan. On gpdf it triggers the
problem when you browse to the second page.

------- Comment #10 From Heinrich Wendel (RETIRED) 2005-08-07 04:14:16 0000 -------
with the second patch the first patch applies fine, but xpdf fails to compile: 
 
make[1]: Entering directory 
`/var/tmp/portage/xpdf-3.00-r10/work/xpdf-3.00/splash' 
x86_64-pc-linux-gnu-g++ -O2 -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi 
-I.   -c Splash.cc 
x86_64-pc-linux-gnu-g++ -O2 -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi 
-I.   -c SplashBitmap.cc 
x86_64-pc-linux-gnu-g++ -O2 -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi 
-I.   -c SplashClip.cc 
x86_64-pc-linux-gnu-g++ -O2 -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi 
-I.   -c SplashFTFont.cc 
x86_64-pc-linux-gnu-g++ -O2 -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi 
-I.   -c SplashFTFontEngine.cc 
x86_64-pc-linux-gnu-g++ -O2 -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi 
-I.   -c SplashFTFontFile.cc 
x86_64-pc-linux-gnu-g++ -O2 -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi 
-I.   -c SplashFont.cc 
x86_64-pc-linux-gnu-g++ -O2 -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi 
-I.   -c SplashFontEngine.cc 
SplashFontEngine.cc: In member function `SplashFontFile* 
SplashFontEngine::loadType1Font(SplashFontFileID*, SplashFontSrc*, char**)': 
SplashFontEngine.cc:114: error: no matching function for call to 
`SplashT1FontEngine::loadType1Font(SplashFontFileID*&, SplashFontSrc*&, 
char**&)' 
SplashT1FontEngine.h:36: note: candidates are: SplashFontFile* 
SplashT1FontEngine::loadType1Font(SplashFontFileID*, char*, GBool, char**) 
SplashFontEngine.cc: In member function `SplashFontFile* 
SplashFontEngine::loadType1CFont(SplashFontFileID*, SplashFontSrc*, char**)': 
SplashFontEngine.cc:140: error: no matching function for call to 
`SplashT1FontEngine::loadType1CFont(SplashFontFileID*&, SplashFontSrc*&, 
char**&)' 
SplashT1FontEngine.h:38: note: candidates are: SplashFontFile* 
SplashT1FontEngine::loadType1CFont(SplashFontFileID*, char*, GBool, char**) 
make[1]: *** [SplashFontEngine.o] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/xpdf-3.00-r10/work/xpdf-3.00/splash' 
make: *** [all] Error 2 
 

------- Comment #11 From Thierry Carrez (RETIRED) 2005-08-07 08:38:35 0000 -------
Beh. Xpdf 3.01 is scheduled for this week, so I guess we'd better wait for it.

------- Comment #12 From Thierry Carrez (RETIRED) 2005-08-09 00:41:15 0000 -------
Keeping this one at "Normal" level since it affects indirectly CUPS.

------- Comment #13 From Thierry Carrez (RETIRED) 2005-08-09 13:24:15 0000 -------
Now public

------- Comment #14 From Thierry Carrez (RETIRED) 2005-08-09 13:46:44 0000 -------
===========================================================
Ubuntu Security Notice USN-163-1	    August 09, 2005
xpdf vulnerability
CAN-2005-2097
===========================================================
[...]
xpdf and kpdf did not sufficiently verify the validity of the "loca"
table in PDF files, a table that contains glyph description
information for embedded TrueType fonts. After detecting the broken
table, xpdf attempted to reconstruct the information in it, which
caused the generation of a huge temporary file that quickly filled up
available disk space and rendered the application unresponsive.

The CUPS printing system in Ubuntu 5.04 uses the xpdf-utils package to
convert PDF files to PostScript. By attempting to print such a crafted
PDF file, a remote attacker could cause a Denial of Service in a print
server. The CUPS system in Ubuntu 4.10 is not vulnerable against this
attack.
[...]
We might find something interesting in :
http://security.ubuntu.com/ubuntu/pool/main/x/xpdf/xpdf_3.00-11ubuntu3.1.diff.gz
Size/MD5:    49233 4cd029c1e95456692b26dcfdb6d53ce8

Otherwise maybe just wait for upstream 3.01 ?

------- Comment #15 From Luis Medinas (RETIRED) 2005-08-10 13:39:37 0000 -------
commited xpdf-3.00-r10 with fedora patch which fix the security issue.

------- Comment #16 From Luis Medinas (RETIRED) 2005-08-10 13:47:06 0000 -------
Archs please test and stablize xpdf-3.00-r10 asap. it's stable on amd64 and
x86.
Thanks

------- Comment #17 From Michael Hanselmann (hansmi) (RETIRED) 2005-08-10 13:58:57 0000 -------
Stable on ppc and hppa.

------- Comment #18 From Markus Rothe 2005-08-11 02:05:22 0000 -------
stable on ppc64

------- Comment #19 From Gustavo Zacarias (RETIRED) 2005-08-11 07:14:44 0000 -------
sparc stable.

------- Comment #20 From Fernando J. Pereda (RETIRED) 2005-08-12 06:01:42 0000 -------
alpha stable

------- Comment #21 From Aaron Walker (RETIRED) 2005-08-12 06:44:20 0000 -------
Stable on mips.

------- Comment #22 From Thierry Carrez (RETIRED) 2005-08-12 08:36:43 0000 -------
That would do a good common GLSA with kpdf and gpdf... since both are mostly
ready too.

------- Comment #23 From Thierry Carrez (RETIRED) 2005-08-12 08:38:43 0000 -------
Security: Don't forget to talk about the CUPS DoS problem in the GLSA, since
it's what this vulnerability in XPDF can most likely be used for.

------- Comment #24 From Bryan Østergaard (RETIRED) 2005-08-12 14:06:28 0000 -------
Stable on ia64.

------- Comment #25 From Sune Kloppenborg Jeppesen 2005-08-15 22:27:14 0000 -------
GLSA ID:  200508-08 

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