First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 196735
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
poppler-0.6.1-xpdf-3.02pl2.patch poppler-0.6.1-xpdf-3.02pl2.patch patch Robert Buchholz 2007-11-02 02:32 0000 17.00 KB Details | Diff
xpdf-3.02pl2.patch xpdf-3.02pl2.patch patch Robert Buchholz 2007-11-07 11:35 0000 20.35 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 196735 depends on: 196673 198238 198409 Show dependency tree
Show dependency graph
Bug 196735 blocks: 176081

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-22 19:50 0000
Secunia Research has discovered some vulnerabilities in Xpdf, which can
be exploited by malicious people to compromise a user's system.

1) An array indexing error exists within the
"DCTStream::readProgressiveDataUnit()" method in xpdf/Stream.cc. This
can be exploited to corrupt memory via a specially crafted PDF file.

2) An integer overflow error exists within the "DCTStream::reset()"
method in xpdf/Stream.cc. This can be exploited to cause a heap-based
buffer overflow via a specially crafted PDF file.

Successful exploitation of the vulnerabilities may allow execution of
arbitrary code.

3) A boundary error exists within the "CCITTFaxStream::lookChar()"
method in xpdf/Stream.cc. This can be exploited to cause a heap-based
buffer overflow by tricking a user into opening a PDF file containing a
specially crafted "CCITTFaxDecode" filter.

Successful exploitation allows execution of arbitrary code.

The vulnerabilities are confirmed in Xpdf 3.02. Other versions may also
be affected.

Vulnerability Details:
----------------------

1) The vulnerability is caused by missing checks when indexing the
"dctZigZag" array in xpdf/Stream.cc at lines 2405, 2429, 2454, 2476 and
2484. 

2) The vulnerability is present in xpdf/Stream.cc at line 1967.

3) The vulnerability can be triggered when filling the "codingLine"
array in xpdf/Stream.cc at lines 1373, 1375, 1379, 1381, 1480 or 1489.
This is triggered when the sum of all black and white codes is smaller
than the "/Columns" parameter in "/DecodeParms" (e.g. "getWhiteCode()"
constantly returns 0 and "getBlackCode()" constantly returns 1).   


Closing comments:
-----------------

We have assigned these vulnerabilities Secunia advisory SA27260 and the
following CVE identifiers:
1) CVE-2007-4352
2) CVE-2007-5392
3) CVE-2007-5393

Upstream contacted.
Disclosure date: As soon as the vendor releases a patch, or 2007-10-31.
                 Note that this may be changed if the vendor requests it.

Credits:
Alin Rad Pop, Secunia Research.

------- Comment #1 From Robert Buchholz 2007-11-02 02:32:17 0000 -------
Created an attachment (id=134985) [edit]
poppler-0.6.1-xpdf-3.02pl2.patch

Patch provided by Derek B. Noonburg, recreated to apply to poppler 0.6.1.

------- Comment #2 From Robert Buchholz 2007-11-02 02:33:37 0000 -------
Hi Stefan, if you want stable testing before the disclosure date please attach
updated ebuilds to this bug. Do not commit anything yet.

------- Comment #3 From Robert Buchholz 2007-11-05 21:36:32 0000 -------
Adding Timo as part of printing in case he wants to test this. Still, please do
not commit anything.

------- Comment #4 From Robert Buchholz 2007-11-07 11:35:46 0000 -------
Created an attachment (id=135418) [edit]
xpdf-3.02pl2.patch

The original xpdf patch against 3.02pl1.

------- Comment #5 From Robert Buchholz 2007-11-07 11:36:30 0000 -------
Adding Alexis for tex.

------- Comment #6 From Sune Kloppenborg Jeppesen 2007-11-07 19:34:57 0000 -------
This one is public now. Do we have a list of affected packages?

------- Comment #7 From Robert Buchholz 2007-11-07 23:24:22 0000 -------
From our embedded-copies list:

== XPDF ==
* app-text/poppler
* app-text/tetex
* app-text/cstetex
* app-text/ptex
* app-office/kword
* app-office/koffice
* kde-base/kpdf
* kde-base/kdegraphics

False positives:
* media-libs/libextractor: Since 0.5.12 libextractor is shipping its own PDF
support
  and at least in 0.5.15 it is also enabled by default.
* net-print/cups: Uses poppler
* app-text/xpdf: Uses poppler
* gnustep-libs/pdfkit: removed
* gnustep-libs/imagekits: removed
* okular (kpdf in kde 4): Uses poppler

------- Comment #8 From Robert Buchholz 2007-11-07 23:29:03 0000 -------
teTex is being handled in bug 198238.

------- Comment #9 From Alexis Ballier 2007-11-07 23:33:14 0000 -------
fixed in:
- texlive-core-2007-r6
- tetex-3.0_p1-r5

for ptex, better ping cjk

for cstetex, I dont know, I've mailed the person who was helping us maintaining
it to know it status, if no answer I'll last rite it.

------- Comment #10 From Robert Buchholz 2007-11-07 23:53:25 0000 -------
The bugs blocking this one handle this issue in the packages mentioned in
comment 7.

printing, any progress on poppler?

------- Comment #11 From Timo Gurr 2007-11-08 23:38:46 0000 -------
Fixed in poppler-0.6.1-r1, applies your attached patch.

------- Comment #12 From Robert Buchholz 2007-11-09 09:54:49 0000 -------
Thanks, Timo.

Arches, please test and mark stable app-text/poppler-0.6.1-r1.
Target keywords : "alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc
x86"

Please do not mind the bugs blocking this one.

------- Comment #13 From Christian Faulhammer 2007-11-09 14:45:31 0000 -------
Don't forget app-text/poppler-bindings-0.6.1

------- Comment #14 From Christian Faulhammer 2007-11-09 16:19:56 0000 -------
x86 stable

------- Comment #15 From Ferris McCormick 2007-11-09 17:03:12 0000 -------
Sparc stable for app-text/poppler-0.6.1-r1 and app-text/poppler-bindings-0.6.1.

------- Comment #16 From Markus Rothe 2007-11-10 00:12:18 0000 -------
ppc64 stable

------- Comment #17 From Stefan Schweizer 2007-11-10 08:17:19 0000 -------
Don't forget app-text/evince-2.20.1, because older versions break with the new
poppler.

------- Comment #18 From Stefan Schweizer 2007-11-10 08:18:15 0000 -------
*** Bug 198616 has been marked as a duplicate of this bug. ***

------- Comment #19 From Markus Rothe 2007-11-10 10:13:28 0000 -------
ppc64 stable:

app-text/poppler-0.6.1-r1
app-text/poppler-bindings-0.6.1
app-text/evince-2.20.1

------- Comment #20 From Christian Faulhammer 2007-11-10 12:52:38 0000 -------
evince done for x86

------- Comment #21 From Ferris McCormick 2007-11-10 13:18:00 0000 -------
Sparc done for evince-2.20.1

------- Comment #22 From Jakub Moc 2007-11-10 16:21:44 0000 -------
*** Bug 198706 has been marked as a duplicate of this bug. ***

------- Comment #23 From Daniel Gryniewicz 2007-11-10 19:02:26 0000 -------
amd64 done.

------- Comment #24 From Raúl Porcel 2007-11-11 11:05:43 0000 -------
alpha/ia64 stable

------- Comment #25 From Jeroen Roovers 2007-11-12 12:06:30 0000 -------
Stable for HPPA.

------- Comment #26 From Jeroen Roovers 2007-11-12 12:11:40 0000 -------
Oh, I didn't do evince yet.

------- Comment #27 From Jeroen Roovers 2007-11-12 12:42:05 0000 -------
Evince stable for HPPA too.

------- Comment #28 From Tobias Scherbaum 2007-11-14 22:14:48 0000 -------
ppc stable - and from what i've heard the glsa is coming soon ...

------- Comment #29 From Stefan Schweizer 2007-11-18 11:57:17 0000 -------
app-text/poppler-0.6.1-r1
app-text/poppler-bindings-0.6.1
app-text/evince-2.20.1
app-text/xpdf-3.02

The new one is xpdf here, because 3.01 gets broken with this new xpdf.

------- Comment #30 From Robert Buchholz 2007-11-18 14:38:07 0000 -------
Arches, please test and mark stable app-text/xpdf-3.02.
Target keywords : "alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86"
Already stabled : "x86"
Missing keywords: "alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc"

------- Comment #31 From Ferris McCormick 2007-11-18 16:40:09 0000 -------
Sparc stable for app-text/xpdf-3.02.

------- Comment #32 From Tobias Scherbaum 2007-11-18 17:03:22 0000 -------
xpdf stable for ppc

------- Comment #33 From Jeroen Roovers 2007-11-18 17:35:12 0000 -------
Stable for HPPA.

------- Comment #34 From Markus Rothe 2007-11-18 17:37:21 0000 -------
ppc64 stable

------- Comment #35 From Samuli Suominen 2007-11-18 18:11:45 0000 -------
amd64 stable for xpdf-3.02, shouldn't 176081 be marked as duplicate of this?
confusing.

------- Comment #36 From Robert Buchholz 2007-11-18 18:32:01 0000 -------
(In reply to comment #35)
> amd64 stable for xpdf-3.02, shouldn't 176081 be marked as duplicate of this?
> confusing.

Sorry, I accidently did not remove arches from that bug. I'll leave it up to
the assignee to close.

------- Comment #37 From Raúl Porcel 2007-11-18 20:31:17 0000 -------
alpha/ia64 stable

------- Comment #38 From Robert Buchholz 2007-11-18 20:36:11 0000 -------
back to [glsa]

------- Comment #39 From Pierre-Yves Rofes 2007-11-18 21:00:13 0000 -------
GLSA 200711-22

------- Comment #40 From Peter Volkov 2008-03-06 09:45:43 0000 -------
Does not affect current (2008.0) release. Removing release.

First Last Prev Next    No search results available      Search page      Enter new bug