Bug 1291312 - (CVE-2015-8540) CVE-2015-8540 libpng: underflow read in png_check_keyword()
CVE-2015-8540 libpng: underflow read in png_check_keyword()
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20151210,reported=2...
: Security
Depends On: 1291314 1291315 1291316 1291317 1291318 1291319 1291320
Blocks: 1291322
  Show dependency treegraph
 
Reported: 2015-12-14 09:42 EST by Martin Prpič
Modified: 2016-07-18 09:55 EDT (History)
12 users (show)

See Also:
Fixed In Version: libpng 1.6.0, libpng 1.0.66, libpng 1.2.56, libpng 1.4.19, libpng 1.5.26.
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-12-21 09:37:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Martin Prpič 2015-12-14 09:42:48 EST
An underflow read was found in png_check_keyword in pngwutil.c in libpng-1.2.54:

If the data of "key" is only ' ' (0x20), it will read a byte before the buffer in line 1288.

This issue impacts upstream versions 1.2.55, 1.0.65, 1.4.18, and 1.5.25 of libpng.

An attacker could possibly use this flaw to cause an out-of-bounds read by tricking an unsuspecting user into processing a specially crafted PNG image.

CVE assignment:

http://seclists.org/oss-sec/2015/q4/469

Upstream issue:

http://sourceforge.net/p/libpng/bugs/244/

Upstream patch:

http://sourceforge.net/p/libpng/code/ci/d9006f683c641793252d92254a75ae9b815b42ed/
Comment 1 Martin Prpič 2015-12-14 09:43:54 EST
Created libpng tracking bugs for this issue:

Affects: fedora-all [bug 1291314]
Comment 2 Martin Prpič 2015-12-14 09:44:02 EST
Created libpng10 tracking bugs for this issue:

Affects: epel-6 [bug 1291318]
Affects: fedora-all [bug 1291320]
Comment 3 Martin Prpič 2015-12-14 09:44:08 EST
Created libpng12 tracking bugs for this issue:

Affects: fedora-all [bug 1291315]
Comment 4 Martin Prpič 2015-12-14 09:44:14 EST
Created libpng15 tracking bugs for this issue:

Affects: fedora-all [bug 1291316]
Comment 5 Martin Prpič 2015-12-14 09:44:21 EST
Created mingw-libpng tracking bugs for this issue:

Affects: fedora-all [bug 1291317]
Affects: epel-7 [bug 1291319]
Comment 9 Stefan Cornelius 2015-12-21 09:41:18 EST
It seems like this is only an issue when an application uses a untrusted input when *writing* a PNG file. Only reading a PNG file should not be enough to trigger this. Since this is a library, it's hard to predict the exact criticality, as it depends on the application using it. For the most common scenarios, this should not be a major problem, it'll probably not even lead to a crash.
Comment 10 Fedora Update System 2015-12-28 17:56:11 EST
libpng10-1.0.66-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2015-12-30 20:50:41 EST
libpng10-1.0.66-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Comment 12 Fedora Update System 2016-01-02 17:21:23 EST
libpng12-1.2.56-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 13 Fedora Update System 2016-01-02 18:19:47 EST
libpng12-1.2.56-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Comment 14 Fedora Update System 2016-01-03 15:25:33 EST
libpng10-1.0.66-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
Comment 15 errata-xmlrpc 2016-02-02 05:05:29 EST
This issue has been addressed in the following products:

  Supplementary for Red Hat Enterprise Linux 6
  Supplementary for Red Hat Enterprise Linux 5

Via RHSA-2016:0101 https://rhn.redhat.com/errata/RHSA-2016-0101.html
Comment 16 errata-xmlrpc 2016-02-02 05:06:57 EST
This issue has been addressed in the following products:

  Supplementary for Red Hat Enterprise Linux 5

Via RHSA-2016:0100 https://rhn.redhat.com/errata/RHSA-2016-0100.html
Comment 17 errata-xmlrpc 2016-02-02 08:53:43 EST
This issue has been addressed in the following products:

  Supplementary for Red Hat Enterprise Linux 7
  Supplementary for Red Hat Enterprise Linux 6

Via RHSA-2016:0099 https://rhn.redhat.com/errata/RHSA-2016-0099.html
Comment 19 errata-xmlrpc 2016-07-18 09:55:55 EDT
This issue has been addressed in the following products:

  Red Hat Satellite 5.6
  Red Hat Satellite 5.7

Via RHSA-2016:1430 https://access.redhat.com/errata/RHSA-2016:1430

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