Bug 583738 (CVE-2010-0207) - CVE-2010-0207 xpdf: XRef table parsing infinite loop
Summary: CVE-2010-0207 xpdf: XRef table parsing infinite loop
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2010-0207
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-19 15:36 UTC by Tomas Hoger
Modified: 2019-09-29 12:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-19 15:50:57 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
FreeDesktop.org 28172 None None None Never

Description Tomas Hoger 2010-04-19 15:36:54 UTC
CERT-FI has provided us with a sample PDF file that causes various xpdf-based PDF viewers to crash.  File causes xpdf to enter an infinite loop, resulting in exhaustion of the stack memory and application crash.

Comment 3 Tomas Hoger 2010-04-19 15:50:57 UTC
Additional details:
xpdf uses XRef::readXRef() (XRef.cc) to read xref object form the PDF file.  This method gets xref object position as an argument.  This calls XRef::readXRefTable() to read "old-style" xref table.  This method parses xref table and reads "trailer" directory.  This trailer may define /XRefStm key, which points to additional xref object (used by linearized PDFs).  XRef::readXRef() is called against with position specified by /XRefStm, which may be identical to the position of the main xref object, resulting in an infinite loop.

This is not considered a security flaw for PDF viewers.

Comment 4 Tomas Hoger 2010-05-19 09:56:36 UTC
Upstream bug:
  https://bugs.freedesktop.org/show_bug.cgi?id=28172


Note You need to log in before you can comment on or make changes to this bug.