Bug 608238 (CVE-2010-1205) - CVE-2010-1205 libpng: out-of-bounds memory write
Summary: CVE-2010-1205 libpng: out-of-bounds memory write
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2010-1205
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: http://www.libpng.org/pub/png/libpng....
Whiteboard:
Depends On: 609160 609161 609162 609917 609918 609919 609921 609922 609926 609928 609929 802165
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-26 09:39 UTC by Kurt Seifried
Modified: 2020-10-29 09:18 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-30 18:45:42 UTC
Embargoed:


Attachments (Terms of Use)
diff -pruNb libpng-1.4.2/pngpread.c libpng-1.4.3/pngpread.c (5.83 KB, patch)
2010-06-29 20:46 UTC, Vincent Danen
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0534 0 normal SHIPPED_LIVE Important: libpng security update 2010-07-14 17:47:47 UTC
Red Hat Product Errata RHSA-2010:0545 0 normal SHIPPED_LIVE Critical: thunderbird security update 2010-07-21 01:18:47 UTC
Red Hat Product Errata RHSA-2010:0546 0 normal SHIPPED_LIVE Critical: seamonkey security update 2010-07-21 00:43:03 UTC
Red Hat Product Errata RHSA-2010:0547 0 normal SHIPPED_LIVE Critical: firefox security update 2010-07-21 01:09:15 UTC

Description Kurt Seifried 2010-06-26 09:39:51 UTC
Description of problem:

http://www.libpng.org/pub/png/libpng.html

Several versions of libpng through 1.4.2 (and through 1.2.43 in the older series) contain a bug whereby progressive applications such as web browsers (or the rpng2 demo app included in libpng) could receive an extra row of image data beyond the height reported in the header, potentially leading to an out-of-bounds write to memory (depending on how the application is written) and the possibility of execution of an attacker's code with the privileges of the libpng user (including remote compromise in the case of a libpng-based browser visiting a hostile web site). This vulnerability has been assigned ID CVE-2010-1205  (via Mozilla).

An additional memory-leak bug, involving images with malformed sCAL chunks, is also present; it could lead to an application crash (denial of service) when viewing such images. 



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tom Lane 2010-06-26 12:27:05 UTC
If memory serves, firefox is still getting built with its own private copy of libpng, so they;re going to need a separate patch for this.

Comment 2 Glenn Randers-Pehrson 2010-06-26 15:28:08 UTC
Yes, mozilla/firefox by default uses a private copy of libpng.  A workaround for this bug was checked in yesterday, for mozilla 1.9.1, 1.9.2 and trunk.  Mozilla/firefox is not vulnerable to the sCAL memory leak.

Libpng-1.4.3 was released last night to address both bugs.

Regards, Glenn Randers-Pehrson, PNG/MNG Development Group

Comment 7 Jan Lieskovsky 2010-06-28 11:40:16 UTC
(In reply to comment #0)
> An additional memory-leak bug, involving images with malformed sCAL chunks, is
> also present; it could lead to an application crash (denial of service) when
> viewing such images. 

This second memory leak issue now tracked under it's own, dedicated
Red Hat Bugzilla entry:
  [1] https://bugzilla.redhat.com/show_bug.cgi?id=608644

Comment 11 Jan Lieskovsky 2010-06-29 15:17:27 UTC
Created libpng tracking bugs for this issue

Affects: fedora-all [bug 609161]

Comment 12 Jan Lieskovsky 2010-06-29 15:17:29 UTC
Created mingw32-libpng tracking bugs for this issue

Affects: fedora-all [bug 609162]

Comment 15 Fedora Update System 2010-06-29 19:19:49 UTC
libpng-1.2.44-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/libpng-1.2.44-1.fc13

Comment 16 Fedora Update System 2010-06-29 19:20:00 UTC
libpng-1.2.44-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/libpng-1.2.44-1.fc12

Comment 18 Vincent Danen 2010-06-29 20:46:45 UTC
Created attachment 427792 [details]
diff -pruNb libpng-1.4.2/pngpread.c libpng-1.4.3/pngpread.c

(In reply to comment #11)
> (In reply to comment #8)
> > Looks like this is the upstream commit to fix this issue:
> > 
> > http://libpng.git.sourceforge.net/git/gitweb.cgi?p=libpng/libpng;a=commitdiff;h=90cfcecc09febb8d6c8c1d37ea7bb7cf0f4b00f3#patch20
> 
> That is an upstream "workaround" for the bug which was removed in a later
> commit.  Our "git" commits show much of our work-in-progress, and there are
> 4 or 5 commits involved in solving this bug.  The actual fix
> can be found by diffing pngpread.c from libpng-1.4.2 and 1.4.3.    

Glenn, replying to the right bug here.

Thanks for that heads up.  I'm attaching the diff from libpng-1.4.2 and libpng-1.4.3 here.  Looks like it might be a bit of an exercise to backport.

Comment 23 Fedora Update System 2010-07-01 18:36:35 UTC
libpng-1.2.44-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 25 Fedora Update System 2010-07-05 22:07:53 UTC
libpng-1.2.44-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

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

  Red Hat Enterprise Linux 3
  Red Hat Enterprise Linux 4
  Red Hat Enterprise Linux 5

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

Comment 29 Fedora Update System 2010-07-20 22:45:32 UTC
libpng10-1.0.54-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 30 errata-xmlrpc 2010-07-21 00:43:06 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3
  Red Hat Enterprise Linux 4

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

Comment 31 errata-xmlrpc 2010-07-21 01:09:19 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4
  Red Hat Enterprise Linux 5

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

Comment 32 errata-xmlrpc 2010-07-21 01:19:00 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

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

Comment 33 Fedora Update System 2010-07-23 02:30:53 UTC
seamonkey-2.0.6-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 34 Fedora Update System 2010-07-23 02:36:19 UTC
xulrunner-1.9.2.7-1.fc13, firefox-3.6.7-1.fc13, mozvoikko-1.0-12.fc13, gnome-web-photo-0.9-10.fc13, perl-Gtk2-MozEmbed-0.08-6.fc13.15, gnome-python2-extras-2.25.3-20.fc13, galeon-2.0.7-30.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 35 Fedora Update System 2010-07-23 02:40:37 UTC
thunderbird-3.0.6-1.fc12, sunbird-1.0-0.23.20090916hg.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 36 Fedora Update System 2010-07-23 02:42:33 UTC
seamonkey-2.0.6-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 37 Fedora Update System 2010-07-23 02:46:17 UTC
xulrunner-1.9.1.11-1.fc12, firefox-3.5.11-1.fc12, gnome-web-photo-0.9-8.fc12, mozvoikko-1.0-11.fc12, perl-Gtk2-MozEmbed-0.08-6.fc12.14, gnome-python2-extras-2.25.3-19.fc12, galeon-2.0.7-24.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 38 Fedora Update System 2010-07-23 02:48:11 UTC
thunderbird-3.1.1-1.fc13, sunbird-1.0-0.26.b2pre.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 39 Fedora Update System 2010-07-27 02:49:57 UTC
mingw32-libpng-1.2.44-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 40 Fedora Update System 2010-07-27 02:50:25 UTC
mingw32-libpng-1.2.44-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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