Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 259578
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Robert Buchholz <rbu@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 259578 depends on: Show dependency tree
Bug 259578 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2009-02-19 10:01 0000
** Please note that this issue is confidential and no information should be
disclosed until it is made public, see "Whiteboard" for a date **

Libpng-1.2.34 ADVISORY    19 February 2009

A vulnerability has been reported in libpng-1.2.34.

The bug is of the form

     malloc an array of N elements
     for (i=0; i<N; i++)
       malloc element[i];

If the application runs out of memory during the
loop, some of the element pointers will be uninitialized.
Libpng will then longjmp to a cleanup process that
attempts to free all of the elements in the array,
including the uninitialized ones.  This behavior
could be forced by a malevolent input.

There are 5 instances of the bug in libpng-1.2.34.
One is in the "png_read_png()".  Only applications
that explicitly call png_read_png() are vulnerable.
Another is in the handler for the pCAL chunk.  Any
application that does not disable pCAL chunk handling
via a call to "set_keep_unknown_chunks()" is vulnerable.
Three others are in code that sets up 16-bit gamma
tables.  All applications are probably vulnerable
to these, even if they use png_set_strip_16() to
reduce 16-bit input to 8-bits, because of the order
in which libpng does its transformations.

In fact, all versions since libpng-0.89c contain
at least the 16-bit gamma-table bugs, and all
versions since libpng-1.0.6 contain the png_read_png()
bug.  The pCAL decoding bug has existed since
libpng-0.96.

The PNG group recommends upgrading to libpng-1.0.43
or libpng-1.2.35.  For persons wishing to continue
using older versions, we are providing a patch along
with the new libpng distributions that will work
against versions 1.0.19 through 1.0.42 and 1.2.9
through 1.2.34.  Anyone wishing to use still older
libpng versions will have to modify the patch slightly.

------- Comment #1 From Robert Buchholz 2009-02-19 10:06:03 0000 -------
This is already out.
vapier, you're fast as hell again. OK for fast-tracked stabling today, or do
you want to give it one more test run?

------- Comment #2 From SpanKY 2009-02-19 18:41:15 0000 -------
i'm not going to do any extended testing ... might as well let the arch testers
give it a spin

------- Comment #3 From Robert Buchholz 2009-02-19 21:16:33 0000 -------
Arches, please test and mark stable:
=media-libs/libpng-1.2.35
Target keywords : "alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"

------- Comment #4 From Jeroen Roovers 2009-02-20 15:04:37 0000 -------
Stable for HPPA.

------- Comment #5 From Brent Baude 2009-02-20 17:39:50 0000 -------
ppc64 done

------- Comment #6 From Tobias Klausmann 2009-02-22 14:34:19 0000 -------
Stable on alpha.

------- Comment #7 From Raúl Porcel 2009-02-22 15:21:10 0000 -------
arm/ia64/s390/sh/sparc/x86 stable

------- Comment #8 From Carsten Lohrke 2009-02-22 23:06:47 0000 -------
Did anyone check, if optipng (includes libpng 1.2.33) is affected as well?

------- Comment #9 From Tobias Scherbaum 2009-02-25 16:27:09 0000 -------
ppc stable

------- Comment #10 From Markus Meier 2009-02-25 20:55:32 0000 -------
amd64 stable

------- Comment #11 From Tobias Heinlein 2009-03-05 20:14:14 0000 -------
GLSA together with bug 244808.

------- Comment #12 From Pierre-Yves Rofes 2009-03-15 18:47:00 0000 -------
GLSA 200903-28

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug