Xpdf StreamPredictor() heap buffer overflow
| xpdf-streampredictor-bo (23442) |
Description:
Xpdf is vulnerable to a heap-based buffer overflow in the StreamPredictor::StreamPredictor() function. By creating a malicious PDF file with overly large numComps value, a remote attacker could overflow a buffer to cause a denial of service and possibly execute arbitrary code on the system with privileges of the Xpdf process. Exploitation of this vulnerability would require the attacker to deliver the malicious PDF file to a potential victim, either by hosting the file on a Web site or sending it to the victim as an email attachment, and then the victim would have to open the file using Xpdf.
Note: This vulnerability affects multiple vendor applications that use the Xpdf code base.
Platforms Affected:
- Canonical, Ubuntu 4.10
- Canonical, Ubuntu 5.04
- Canonical, Ubuntu 5.10
- Debian, Debian Linux 3.0
- Debian, Debian Linux 3.1
- Easy Software Products, CUPS prior to 1.2svn
- Gentoo, Linux
- Glyph & Cog, Xpdf 3.01
- KDE, KDE 3.5 and prior
- KDE, KOffice 1.4.2 and prior
- KDE, KPDF 0.5 and prior
- MandrakeSoft, Mandrake Linux 10.1 X86_64
- MandrakeSoft, Mandrake Linux 10.1
- MandrakeSoft, Mandrake Linux 2006
- MandrakeSoft, Mandrake Linux 2006 X86_64
- MandrakeSoft, Mandrake Linux LE2005 X86_64
- MandrakeSoft, Mandrake Linux LE2005
- MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- Poppler, Poppler 0.4.2 and prior
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 WS
- RedHat, Linux Advanced Workstation 2.1 Itanium
- SourceForge, pdftohtml 0.36 and prior
- Sun, Solaris 10 x86
- Sun, Solaris 10 SPARC
- SuSE, SuSE Linux 10.0
- SuSE, SuSE Linux 9.0
- SuSE, SuSE Linux 9.1
- SuSE, SuSE Linux 9.2
- SuSE, SuSE Linux 9.3
- SuSE, SuSE Linux Desktop 1.0
- SuSE, SuSE SLES 9
- Thomas Esser, teTeX 3.0 and prior
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
- Turbolinux, Turbolinux 10 Server
- Turbolinux, Turbolinux 10 Server x64 Ed
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux 8 Workstation
- Turbolinux, Turbolinux FUJI
- Turbolinux, Turbolinux Home
- Turbolinux, Turbolinux Multimedia
- Turbolinux, Turbolinux Personal
- Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed
Remedy:
Upgrade to the latest version of Xpdf (3.01pl1 or later), available from the Xpdf Web site. See References.
For Debian GNU/Linux:
Refer to DSA-962-1, DSA-961-1, DSA-950-1, DSA-940-1, DSA-937-1, DSA-936-1, DSA-932-1, and DSA-931-1 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (teTex):
Refer to RHSA-2006:0160-14 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (xpdf):
Refer to RHSA-2005:840-10 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (gpdf):
Refer to RHSA-2005:867-5 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (kdegraphics):
Refer to RHSA-2005:868-4 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (CUPS):
Refer to RHSA-2005:878-4 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux (KPdf and Kword):
Refer to Gentoo Linux Security Announcement GLSA 2006-01-02 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux (Xpdf, GPdf, CUPS, Poppler):
Refer to Gentoo Linux Security Announcement GLSA 2005-12-08 for patch, upgrade, or suggested workaround information. See References.
For Ubuntu Linux:
Refer to USN-227-1 for patch, upgrade, or suggested workaround information. See References.
For SUSE Linux:
Refer to SUSE Security Announcement SUSE-SA:2006:001 for patch, upgrade, or suggested workaround information. See References.
For Sun Solaris (gpdf):
Refer to Sun Alert ID: 102972 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- Chris Evans Security Advisory CESA-2005-003 - rev 2, xpdf (and derivatives) buffer and integer overflows at http://scary.beasts.org/security/CESA-2005-003.txt.
- Fedora Update Notification FEDORA-2005-1141, Fedora Core 3 Update: cups-1.1.22-0.rc1.8.8 at http://www.redhat.com/archives/fedora-announce-list/2005-December/msg00036.html.
- Fedora Update Notification FEDORA-2005-1142, Fedora Core 4 Update: cups-1.1.23-15.2 at http://www.redhat.com/archives/fedora-announce-list/2005-December/msg00037.html.
- iDEFENSE Security Advisory 12.05.05, Multiple Vendor xpdf StreamPredictor Heap Overflow Vulnerability at http://www.idefense.com/application/poi/display?id=344&type=vulnerabilities.
- KDE Security Advisory 20051207-2, kpdf/xpdf multiple integer overflows at http://www.kde.org/info/security/advisory-20051207-2.txt.
- Sun Alert ID: 102972, Multiple Security Vulnerabilities in the Solaris Gnome PDF Viewer (gpdf(1)) may Allow a Denial of Service (DoS) Condition or Lead to Execution of Arbitrary Code at http://sunsolve.sun.com/search/document.do?assetkey=1-26-102972-1.
- Xpdf Web site, Xpdf: Download at http://www.foolabs.com/xpdf/download.html.
- ASA-2006-007: cups security update (RHSA-2005-878)
- ASA-2006-019: tetex security update (RHSA-2006-0160)
- ASA-2006-094: UnixWare CUPS Multiple Buffer Overflow Vulnerabilities (SCOSA-2006.21)
- ASA-2007-281: Multiple Security Vulnerabilities in the Solaris Gnome PDF Viewer (gpdf(1)) may Allow a Denial of Service (DoS) Condition or Lead to Execution of Arbitrary Code (SUN 102972)
- BID-15725: XPDF StreamPredictor Remote Heap Buffer Overflow Vulnerability
- CVE-2005-3192: Heap-based buffer overflow in the StreamPredictor function in Xpdf 3.01, as used in products such as (1) Poppler, (2) teTeX, (3) KDE kpdf, and (4) pdftohtml, (5) KOffice KWord, (6) CUPS, and (7) libextractor allows remote attackers to execute arbitrary code via a PDF file with an out-of-range numComps (number of components) field.
- DSA-931: xpdf -- buffer overflows
- DSA-932: kdegraphics -- buffer overflows
- DSA-936: libextractor -- buffer overflows
- DSA-937: tetex-bin -- buffer overflows
- DSA-940: gpdf -- buffer overflows
- DSA-950: cupsys -- buffer overflows
- DSA-961: pdfkit.framework -- buffer overflows
- DSA-962: pdftohtml -- buffer overflows
- FrSIRT/ADV-2005-2755: Xpdf Stream.cc and JPXStream.cc Buffer Overflow Vulnerabilities
- FrSIRT/ADV-2005-2786: pdftohtml Xpdf Stream.cc Multiple Buffer Overflow Vulnerabilities
- FrSIRT/ADV-2005-2787: KDE kpdf Stream.cc and JPXStream.cc Buffer Overflow Vulnerabilities
- FrSIRT/ADV-2005-2788: KDE Dpdf Multiple Client-Side Buffer Overflow Vulnerabilities
- FrSIRT/ADV-2005-2789: Poppler Stream.cc and JPXStream.cc Buffer Overflow Vulnerabilities
- FrSIRT/ADV-2005-2790: teTeX Stream.cc and JPXStream.cc Buffer Overflow Vulnerabilities
- FrSIRT/ADV-2005-2856: CUPS Stream.cc and JPXStream.cc Buffer Overflow Vulnerabilities
- FrSIRT/ADV-2007-2280: Sun Solaris Gnome PDF Document Viewer Multiple Command Execution Vulnerabilities
- GLSA-200512-08: Xpdf, GPdf, CUPS, Poppler: Multiple vulnerabilities
- GLSA-200601-02: KPdf, KWord: Multiple overflows in included Xpdf code
- MDKSA-2006:008: Updated koffice packages fix several vulnerabilities
- MDKSA-2006:010: Updated cups packages fix several vulnerabilities
- MDKSA-2006:011: Updated tetex packages fix several vulnerabilities
- MDKSA-2006:012: Updated kdegraphics packages fix several vulnerabilities
- RHSA-2005-840: xpdf security update
- RHSA-2005-867: gpdf security update
- RHSA-2005-868: kdegraphics security update
- RHSA-2005-878: cups security update
- RHSA-2006-0160: tetex security update
- SA17897: Xpdf Multiple Buffer Overflow Vulnerabilities
- SA17908: KOffice KWord PDF Filter Xpdf Buffer Overflow Vulnerabilities
- SA17912: Poppler Xpdf Buffer Overflow Vulnerabilities
- SA17916: teTeX Xpdf Buffer Overflow Vulnerabilities
- SA17920: KDE kpdf Xpdf Buffer Overflow Vulnerabilities
- SA17921: pdftohtml Xpdf Buffer Overflow Vulnerabilities
- SA17940: GNOME gpdf Xpdf Buffer Overflow Vulnerabilities
- SA17976: CUPS xpdf Multiple Buffer Overflow Vulnerabilities
- SA18303: xpdf Multiple Integer Overflow Vulnerabilities
- SA18398: libextractor Multiple Xpdf Vulnerabilities
- SA18674: GNUStep PDFKit Framework Xpdf Multiple Vulnerabilities
- SA25729: Sun Solaris Gnome PDF Viewer Multiple Vulnerabilities
- SECTRACK ID: 1015309: Xpdf Buffer Overflows in Processing DCT and JPX Streams May Let Remote Users Execute Arbitrary Code
- SECTRACK ID: 1015324: KDE KOffice kpdf Buffer Overflows in Processing DCT and JPX Streams May Let Remote Users Execute Arbitrary Code
- SUSE-SA:2006:001: xpdf various security problems
- SUSE-SR:2005:029: SUSE Security Summary Report
- SUSE-SR:2005:030: SUSE Security Summary Report
- SUSE-SR:2006:001: SUSE Security Summary Report
- SUSE-SR:2006:002: SUSE Security Summary Report
Reported:
Dec 05, 2005
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
