Bug 595245 (CVE-2010-3702)

Summary: CVE-2010-3702 xpdf: uninitialized Gfx::parser pointer dereference
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: andreas.bierfert, mkasik, orion, rdieter, security-response-team, tcallawa, than, tremble, vdanen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-15 16:48:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 639826, 639827, 639828, 639829, 639830, 639831, 639832, 639833, 639834, 639835, 639836, 639837, 639838, 639839, 639840, 639841, 639842, 639859, 639860, 639861, 639868, 639875, 652108, 773177, 773178, 773180, 833917    
Bug Blocks: 638835    
Attachments:
Description Flags
Proposed patch
none
xpdf-3.02pl5.patch
none
patch used for tetex none

Description Tomas Hoger 2010-05-24 07:59:07 UTC
Sauli Pahlman of CERT-FI provided us with fuzzed PDF file which causes xpdf / poppler PDF parser to crash.

The crash is caused by an attempt to dereference uninitialized Gfx::parser pointer in Gfx::getPos(), which assumes parser is either NULL or valid Parser pointer.

http://cgit.freedesktop.org/poppler/poppler/tree/poppler/Gfx.cc?id=71063d51#n879

Comment 2 Tomas Hoger 2010-05-24 08:01:18 UTC
Created attachment 416048 [details]
Proposed patch

This makes sure that parser in initialized to NULL in Gfx constructors.

Comment 3 Tomas Hoger 2010-09-30 06:30:21 UTC
(In reply to comment #2)
> Created attachment 416048 [details]
> Proposed patch
> 
> This makes sure that parser in initialized to NULL in Gfx constructors.

Upstream came up with the identical fix to my proposal based on what seems to be an independent report from Joel Voss:

http://cgit.freedesktop.org/poppler/poppler/commit/?id=e853106b58d6b4b0467dbd6436c9bb1cfbd372cf

http://secunia.com/advisories/41596/

Comment 7 Huzaifa S. Sidhpurwala 2010-10-04 08:54:44 UTC
Created poppler tracking bugs for this issue

Affects: fedora-all [bug 639861]

Comment 14 Tomas Hoger 2010-10-07 14:40:47 UTC
This is likely to affect other applications that embed xpdf code, such as pdfedit and koffice 1.x.  Official xpdf patch may appear later this week.

Comment 15 errata-xmlrpc 2010-10-07 15:05:17 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0749 https://rhn.redhat.com/errata/RHSA-2010-0749.html

Comment 16 errata-xmlrpc 2010-10-07 15:10:54 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3

Via RHSA-2010:0750 https://rhn.redhat.com/errata/RHSA-2010-0750.html

Comment 17 errata-xmlrpc 2010-10-07 15:26:24 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2010:0751 https://rhn.redhat.com/errata/RHSA-2010-0751.html

Comment 18 errata-xmlrpc 2010-10-07 15:31:49 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2010:0752 https://rhn.redhat.com/errata/RHSA-2010-0752.html

Comment 19 errata-xmlrpc 2010-10-07 15:52:21 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4
  Red Hat Enterprise Linux 5

Via RHSA-2010:0753 https://rhn.redhat.com/errata/RHSA-2010-0753.html

Comment 20 errata-xmlrpc 2010-10-07 17:28:17 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3

Via RHSA-2010:0754 https://rhn.redhat.com/errata/RHSA-2010-0754.html

Comment 21 errata-xmlrpc 2010-10-07 17:48:40 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2010:0755 https://rhn.redhat.com/errata/RHSA-2010-0755.html

Comment 22 Tomas Hoger 2010-10-25 08:12:21 UTC
Created attachment 455425 [details]
xpdf-3.02pl5.patch

xpdf upstream patch - xpdf-3.02pl5.patch

Fixes the issue in the same way poppler patch does.

Comment 23 errata-xmlrpc 2010-11-10 19:17:55 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2010:0859 https://rhn.redhat.com/errata/RHSA-2010-0859.html

Comment 24 Huzaifa S. Sidhpurwala 2012-08-21 04:24:26 UTC
Created attachment 605823 [details]
patch used for tetex

Comment 26 errata-xmlrpc 2012-08-23 14:58:01 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2012:1201 https://rhn.redhat.com/errata/RHSA-2012-1201.html