Bug 454277 (CVE-2008-2950) - CVE-2008-2950 poppler: uninitialized pointer free (oCERT-2008-007)
Summary: CVE-2008-2950 poppler: uninitialized pointer free (oCERT-2008-007)
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2008-2950
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 454288 454289 454290
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-07 13:18 UTC by Tomas Hoger
Modified: 2021-11-12 19:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-09-11 17:19:27 UTC
Embargoed:


Attachments (Terms of Use)
Proposed patch (400 bytes, patch)
2008-07-07 13:19 UTC, Tomas Hoger
no flags Details | Diff

Description Tomas Hoger 2008-07-07 13:18:33 UTC
Quoting upcoming oCERT advisory:

The poppler PDF rendering library suffers a memory management bug which leads
to arbitrary code execution.

The vulnerability is present in the Page class constructor/destructor. The
pageWidgets object is not initialized in the Page constructor if specific
conditions are met, but it is deleted afterwards in the destructor regardless
of its initialization.

oCERT advisory credits: Felipe Andres Manzano

Advisory:
http://www.ocert.org/advisories/ocert-2008-007.html

Comment 1 Tomas Hoger 2008-07-07 13:19:51 UTC
Created attachment 311147 [details]
Proposed patch

Comment 5 Tomas Hoger 2008-07-07 15:03:19 UTC
This issue did not affect version of poppler as shipped in Red Hat Enterprise
Linux 5, or other PDF parsing applications derived from xpdf as shipped in Red
Hat Enterprise Linux 2.1, 3, 4, and 5.

Comment 6 Tomas Hoger 2008-07-09 12:04:58 UTC
Detailed description and public PoC by Felipe Andres Manzano:

  http://marc.info/?l=full-disclosure&m=121556059918963&w=4

Comment 7 Fedora Update System 2008-08-01 10:10:39 UTC
poppler-0.6.2-2.fc8 has been submitted as an update for Fedora 8

Comment 8 Fedora Update System 2008-08-01 10:10:57 UTC
poppler-0.8.1-2.fc9 has been submitted as an update for Fedora 9

Comment 9 Fedora Update System 2008-08-07 23:50:34 UTC
poppler-0.8.1-2.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update poppler'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-7012

Comment 10 Fedora Update System 2008-08-07 23:57:49 UTC
poppler-0.6.2-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Tomas Hoger 2008-09-03 10:41:25 UTC
To further extend comment #5:

As detailed in Felipes advisory [1], this issue occurs when pageWidgets with uninitialized value is freed in Page::~Page() destructor.  pageWidgets was only introduced in poppler in (or around) upstream version 0.6.  The code does not exist in the xpdf, on which poppler is based.

[1] http://marc.info/?l=full-disclosure&m=121556059918963&w=4
    http://www.milw0rm.com/exploits/6032

Comment 12 Fedora Update System 2008-09-11 17:07:14 UTC
poppler-0.8.1-2.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Red Hat Product Security 2008-09-11 17:19:27 UTC
This issue was addressed in:

Fedora:
  https://admin.fedoraproject.org/updates/F8/FEDORA-2008-7104
  https://admin.fedoraproject.org/updates/F9/FEDORA-2008-7012


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