An integer overflow leading to a heap-based buffer overflow was found in the png_set_unknown_chunks() API function of libpng. A attacker could create a specially-crafated image file and render it with an application written to explicitly call png_set_unknown_chunks() function, could cause libpng to crash or execute arbitrary code with the permissions of the user running such an application.
The vendor mentions that internal calls use safe values. These issues could potentially affect applications that use the libpng API. Apparently no such applications were identified.
This issue was addressed by the following upstream commit:
and was later enhanced by the following commit:
Upstream released libpng-1.6.0 and libpng-1.5.14 to address this issue.
In libpng-1.5.14 the following commits were used by upstream to address this flaw:
Created libpng tracking bugs for this issue:
Affects: fedora-19 [bug 1086669]
Created libpng10 tracking bugs for this issue:
Affects: epel-6 [bug 1086673]
Created libpng15 tracking bugs for this issue:
Affects: fedora-20 [bug 1086670]
Created mingw-libpng tracking bugs for this issue:
Affects: fedora-19 [bug 1086671]
Created mingw32-libpng tracking bugs for this issue:
Affects: epel-5 [bug 1086672]
Affects: epel-6 [bug 1086674]
Not vulnerable. This issue does not affect the version of libpng as shipped with Red Hat Enterprise Linux 5 and 6.