CVE-2009-3604: Buffer Overflow

Published Oct 2, 2009
·
Updated

Adam Zabrocki reported flaws in xpdf's Splash::drawImage function related to buffer memory allocations:

2220 // allocate pixel buffers 2221 colorBuf = (SplashColorPtr)gmalloc((yp + 1) w nComps); 2222 if (srcAlpha) { 2223 alphaBuf = (Guchar )gmalloc((yp + 1) w); 2224 } else { 2225 alphaBuf = NULL; 2226 }

Values used to compute argument passed to gmalloc come from input PDF file. Properly chosen values will cause gmalloc to return NULL or buffer of insufficient size, leading to NULL pointer dereference or heap buffer overflow later.

Affected Splash output device is not available in xpdf 2.x versions and earlier. It is also not used in xpdf embedded in CUPS or tetex.

This was already fixed in poppler as part of preventive gmalloc -> gmallocn changes: http://cgit.freedesktop.org/poppler/poppler/commit/?id=9cf2325fb2

This fix is also present in the EL5 poppler packages.

Acknowledgements:

Red Hat would like to thank Adam Zabrocki for reporting this issue.

Other sources

The Splash::drawImage function in Splash.cc in Xpdf 2.x and 3.x before 3.02pl4, and Poppler 0.x, as used in GPdf and kdegraphics KPDF, does not properly allocate memory, which allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PDF document that triggers a NULL pointer dereference or a heap-based buffer overflow.

Affected Software

73 affected componentsFixes available
redhat/xpdf<1:2.02-17.el3
1:2.02-17.el3
redhat/xpdf<1:3.00-22.el4_8.1
1:3.00-22.el4_8.1
redhat/gpdf<0:2.8.2-7.7.2.el4_8.5
0:2.8.2-7.7.2.el4_8.5
redhat/kdegraphics<7:3.3.1-15.el4_8.2
7:3.3.1-15.el4_8.2
redhat/poppler<0:0.5.4-4.4.el5_3.9
0:0.5.4-4.4.el5_3.9
redhat/kdegraphics<7:3.5.4-15.el5_4.2
7:3.5.4-15.el5_4.2
Gnome Gpdf
KDE kpdf
Foolabs Xpdf=3.02pl1
Foolabs Xpdf=3.02pl2
Foolabs Xpdf=3.02pl3
Glyphandcog Xpdfreader=2.00
Glyphandcog Xpdfreader=2.01
Glyphandcog Xpdfreader=2.02
Glyphandcog Xpdfreader=2.03
Glyphandcog Xpdfreader=3.00
Glyphandcog Xpdfreader=3.01
Glyphandcog Xpdfreader=3.02
Poppler Poppler=0.1
Poppler Poppler=0.1.1
Poppler Poppler=0.1.2
Poppler Poppler=0.2.0
Poppler Poppler=0.3.0
Poppler Poppler=0.3.1
Poppler Poppler=0.3.2
Poppler Poppler=0.3.3
Poppler Poppler=0.4.0
Poppler Poppler=0.4.1
Poppler Poppler=0.4.2
Poppler Poppler=0.4.3
Poppler Poppler=0.4.4
Poppler Poppler=0.5.0
Poppler Poppler=0.5.1
Poppler Poppler=0.5.2
Poppler Poppler=0.5.3
Poppler Poppler=0.5.4
Poppler Poppler=0.5.9
Poppler Poppler=0.5.90
Poppler Poppler=0.5.91
Poppler Poppler=0.6.0
Poppler Poppler=0.6.1
Poppler Poppler=0.6.2
Poppler Poppler=0.6.3
Poppler Poppler=0.6.4
Poppler Poppler=0.7.0
Poppler Poppler=0.7.1
Poppler Poppler=0.7.2
Poppler Poppler=0.7.3
Poppler Poppler=0.8.0
Poppler Poppler=0.8.1
Poppler Poppler=0.8.2
Poppler Poppler=0.8.3
Poppler Poppler=0.8.4
Poppler Poppler=0.8.5
Poppler Poppler=0.8.6
Poppler Poppler=0.8.7
Poppler Poppler=0.9.0
Poppler Poppler=0.9.1
Poppler Poppler=0.9.2
Poppler Poppler=0.9.3
Poppler Poppler=0.10.0
Poppler Poppler=0.10.1
Poppler Poppler=0.10.2
Poppler Poppler=0.10.3
Poppler Poppler=0.10.4
Poppler Poppler=0.10.5
Poppler Poppler=0.10.6
Poppler Poppler=0.10.7
Poppler Poppler=0.11.0
Poppler Poppler=0.11.1
Poppler Poppler=0.11.2
Poppler Poppler=0.11.3
Poppler Poppler=0.12.0

Event History

Oct 2, 2009
Data Sourced
via Red Hat·01:30 PM
DescriptionSeverityAffected Software
Oct 14, 2009
CVE Published
via Red Hat·12:00 AM
Oct 21, 2009
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Data Sourced
05:30 PM
DescriptionWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2009-3604?

CVE-2009-3604 is classified as a moderate severity vulnerability due to its potential to cause denial of service and possibly execute arbitrary code.

2

How do I fix CVE-2009-3604?

To fix CVE-2009-3604, update to the latest version of affected packages such as Xpdf and Poppler as specified in vendor advisories.

3

What software is affected by CVE-2009-3604?

CVE-2009-3604 affects Xpdf versions prior to 3.02pl4, and Poppler versions prior to 0.x, along with some applications like GPdf and KPDF.

4

Can CVE-2009-3604 lead to remote exploitation?

Yes, CVE-2009-3604 allows remote attackers to exploit the vulnerability through crafted PDF files, leading to a denial of service or arbitrary code execution.

5

Is there a specific version of Xpdf that is not vulnerable to CVE-2009-3604?

Yes, Xpdf version 3.02pl4 and later are not vulnerable to CVE-2009-3604.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203