Bug 583738 (CVE-2010-0207) - CVE-2010-0207 xpdf: XRef table parsing infinite loop
Summary: CVE-2010-0207 xpdf: XRef table parsing infinite loop
Alias: CVE-2010-0207
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On:
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:
Last Closed: 2010-04-19 15:50:57 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
FreeDesktop.org 28172 0 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:

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