portage-ng / portage / media-libs / libpng / 1.6.58
portage-ng glsa
18 advisories reference media-libs/libpng · none place version 1.6.58 in a vulnerable range
▸ GLSA 202511-06 libpng: Multiple vulnerabilities this version unaffected high remote 2025-11-26

Multiple vulnerabilities have been discovered in libpng, the worst of which could lead to execution of arbitrary code.

Announced
2025-11-26
Revised
2025-11-26
Access
remote
Bugs
#966340
Advisory
https://security.gentoo.org/glsa/202511-06

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.6.51>= 1.6.51

Background

libpng is the official PNG reference library used to read, write and manipulate PNG images.

Description

Multiple vulnerabilities have been discovered in libpng. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.6.51"

References

▸ GLSA 201908-02 libpng: Multiple vulnerabilities this version unaffected normal remote 2019-08-03

Multiple vulnerabilities have been found in libpng, the worst of which could result in a Denial of Service condition.

Announced
2019-08-03
Revised
2019-08-03
Access
remote
Bugs
#683366
Advisory
https://security.gentoo.org/glsa/201908-02

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.6.37:0>= 1.6.37:0

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several programs, including web browsers and potentially server processes.

Description

Multiple vulnerabilities have been discovered in libpng. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker, by enticing a user to process a specially crafted PNG file, could cause a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.6.37"

References

▸ GLSA 201701-74 libpng: Remote execution of arbitrary code this version unaffected normal remote 2017-01-29

A null pointer dereference in libpng might allow remote attackers to execute arbitrary code.

Announced
2017-01-29
Revised
2017-01-29
Access
remote
Bugs
#604082
Advisory
https://security.gentoo.org/glsa/201701-74

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.6.27>= 1.6.27, >= 1.5.28:1.5, >= 1.2.57:1.2

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several programs, including web browsers and potentially server processes.

Description

A null pointer dereference was discovered in libpng in the png_push_save_buffer function. In order to be vulnerable, an application has to load a text chunk into the PNG structure, then delete all text, then add another text chunk to the same PNG structure, which seems to be an unlikely sequence, but it is possible.

Impact

A remote attacker, by enticing a user to process a specially crafted PNG file, could execute arbitrary code with the privileges of the process.

Workaround

There is no known workaround at this time.

Resolution

All libpng 1.6.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.6.27"

All libpng 1.5.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.5.28:1.5"

All libpng 1.2.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.57:1.2"

References

▸ GLSA 201611-08 libpng: Multiple vulnerabilities this version unaffected normal remote 2016-11-15

Multiple vulnerabilities have been found in libpng, the worst of which may allow remote attackers to cause Denial of Service.

Announced
2016-11-15
Revised
2016-11-15
Access
remote
Bugs
#564244 #565678 #568216
Advisory
https://security.gentoo.org/glsa/201611-08

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.6.21>= 1.2.56:1.2, >= 1.5.26:1.5, >= 1.6.21

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several other programs, including web browsers and potentially server processes.

Description

Multiple vulnerabilities were found in libpng. Please review the referenced CVE’s for additional information.

Impact

Remote attackers could cause a Denial of Service condition or have other unspecified impacts.

Workaround

There is no known workaround at this time.

Resolution

All libpng 1.2 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.56"

All libpng 1.5 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.5.26"

All libpng 1.6 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.6.21"

References

▸ GLSA 201502-10 libpng: User-assisted execution of arbitrary code this version unaffected normal local, remote 2015-02-15

Two vulnerabilities have been found in libpng, possibly resulting in execution of arbitrary code.

Announced
2015-02-15
Revised
2017-01-03 (revision 3)
Access
local, remote
Bugs
#531264 #533358
Advisory
https://security.gentoo.org/glsa/201502-10

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.6.16>= 1.6.16, >= 1.5.21:1.5, >= 1.2.52:1.2

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several programs, including web browsers and potentially server processes.

Description

Two vulnerabilities have been discovered in libpng:

  • The png_user_version_check function contains an out-of-bounds memory access error (libpng 1.6.15 Release Notes)
  • The png_combine_row function contains an integer overflow error, which could result in a heap-based buffer overflow (CVE-2014-9495)

Impact

A context-dependent attacker could entice a user to open a specially crafted PNG file using an application linked against libpng, possibly resulting in execution of arbitrary code.

Workaround

There is no known workaround at this time.

Resolution

All libpng 1.6 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.6.16"

All libpng 1.5 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.5.21"

References

▸ GLSA 201408-06 libpng: Multiple vulnerabilities this version unaffected normal remote 2014-08-14

Multiple vulnerabilities have been discovered in libpng which can allow a remote attacker to cause a Denial of Service condition.

Announced
2014-08-14
Revised
2015-06-06 (revision 4)
Access
remote
Bugs
#503014 #507378
Advisory
https://security.gentoo.org/glsa/201408-06

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.6.10>= 1.6.10, < 1.3, >= 1.5.18 (revision), >= 1.5.19 (revision), >= 1.5.20 (revision), >= 1.5.21 (revision), >= 1.5.22 (revision), >= 1.5.23 (revision), >= 1.5.24 (revision), >= 1.5.25 (revision)

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several programs, including web browsers and potentially server processes.

Description

The png_push_read_chunk function in pngpread.c in the progressive decoder enters an infinite loop, when it encounters a zero-length IDAT chunk. In addition certain integer overflows have been detected and corrected.

The 1.2 branch is not affected by these vulnerabilities.

Impact

A remote attacker could entice a user to open a specially crafted PNG file using an application linked against libpng, possibly resulting in Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.6.10"

Users with current installs in the 1.5 branch should also upgrade this using:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.5.18:1.5"

Packages which depend on this library may need to be recompiled. Tools such as revdep-rebuild may assist in identifying these packages.

References

▸ GLSA 201206-15 libpng: Multiple vulnerabilities this version unaffected normal remote 2012-06-22

Multiple vulnerabilities in libpng might allow remote attackers to execute arbitrary code or cause a Denial of Service condition.

Announced
2012-06-22
Revised
2017-01-03 (revision 5)
Access
remote
Bugs
#373967 #386185 #401987 #404197 #410153
Advisory
https://security.gentoo.org/glsa/201206-15

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.5.10>= 1.5.10, >= 1.2.49:1.2

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several programs, including web browsers and potentially server processes.

Description

Multiple vulnerabilities have been discovered in libpng:

  • The “embedded_profile_len()” function in pngwutil.c does not check for negative values, resulting in a memory leak (CVE-2009-5063).
  • The “png_format_buffer()” function in pngerror.c contains an off-by-one error (CVE-2011-2501).
  • The “png_rgb_to_gray()” function in pngrtran.c contains an integer overflow error (CVE-2011-2690).
  • The “png_err()” function in pngerror.c contains a NULL pointer dereference error (CVE-2011-2691).
  • The “png_handle_sCAL()” function in pngrutil.c improperly handles malformed sCAL chunks(CVE-2011-2692).
  • The “png_decompress_chunk()” function in pngrutil.c contains an integer overflow error (CVE-2011-3026).
  • The “png_inflate()” function in pngrutil.c contains and out of bounds error (CVE-2011-3045).
  • The “png_set_text_2()” function in pngset.c contains an error which could result in memory corruption (CVE-2011-3048).
  • The “png_formatted_warning()” function in pngerror.c contains an off-by-one error (CVE-2011-3464).

Impact

An attacker could exploit these vulnerabilities to execute arbitrary code with the permissions of the user running the vulnerable program, which could be the root user, or to cause programs linked against the library to crash.

Workaround

There is no known workaround at this time.

Resolution

All libpng 1.5 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.5.10"

All libpng 1.2 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.49"

Packages which depend on this library may need to be recompiled. Tools such as revdep-rebuild may assist in identifying some of these packages.

References

▸ GLSA 201010-01 Libpng: Multiple vulnerabilities this version unaffected normal remote 2010-10-05

Multiple vulnerabilities in libpng might lead to privilege escalation or a Denial of Service.

Announced
2010-10-05
Revised
2017-01-03 (revision 9)
Access
remote
Bugs
#307637 #324153 #335887
Advisory
https://security.gentoo.org/glsa/201010-01

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.4.3>= 1.4.3, >= 1.2.46:1.2

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several programs, including web browsers and potentially server processes.

Description

Multiple vulnerabilities were found in libpng:

  • The png_decompress_chunk() function in pngrutil.c does not properly handle certain type of compressed data (CVE-2010-0205)
  • A buffer overflow in pngread.c when using progressive applications (CVE-2010-1205)
  • A memory leak in pngrutil.c when dealing with a certain type of chunks (CVE-2010-2249)

Impact

An attacker could exploit these vulnerabilities to cause programs linked against the library to crash or execute arbitrary code with the permissions of the user running the vulnerable program, which could be the root user.

Workaround

There is no known workaround at this time.

Resolution

All libpng 1.4 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.4.3"

All libpng 1.2 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.46"

References

▸ GLSA 200906-01 libpng: Information disclosure this version unaffected low remote 2009-06-27

A vulnerability has been discovered in libpng that allows for information disclosure.

Announced
2009-06-27
Revised
2009-06-27
Access
remote
Bugs
#272970
Advisory
https://security.gentoo.org/glsa/200906-01

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.2.37>= 1.2.37

Background

libpng is the official PNG reference library used to read, write and manipulate PNG images.

Description

Jeff Phillips discovered that libpng does not properly parse 1-bit interlaced images with width values that are not divisible by 8, which causes libpng to include uninitialized bits in certain rows of a PNG file.

Impact

A remote attacker might entice a user to open a specially crafted PNG file, possibly resulting in the disclosure of sensitive memory portions.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.37"

References

▸ GLSA 200903-28 libpng: Multiple vulnerabilities this version unaffected normal remote 2009-03-15

Multiple vulnerabilities were found in libpng, which might result in the execution of arbitrary code

Announced
2009-03-15
Revised
2009-03-15
Access
remote
Bugs
#244808 #255231 #259578
Advisory
https://security.gentoo.org/glsa/200903-28

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.2.35>= 1.2.35

Background

libpng is the official PNG reference library used to read, write and manipulate PNG images.

Description

Multiple vulnerabilities were discovered in libpng:

  • A memory leak bug was reported in png_handle_tEXt(), a function that is used while reading PNG images (CVE-2008-6218).
  • A memory overwrite bug was reported by Jon Foster in png_check_keyword(), caused by writing overlong keywords to a PNG file (CVE-2008-5907).
  • A memory corruption issue, caused by an incorrect handling of an out of memory condition has been reported by Tavis Ormandy of the Google Security Team. That vulnerability affects direct uses of png_read_png(), pCAL chunk and 16-bit gamma table handling (CVE-2009-0040).

Impact

A remote attacker may execute arbitrary code with the privileges of the user opening a specially crafted PNG file by exploiting the erroneous out-of-memory handling. An attacker may also exploit the png_check_keyword() error to set arbitrary memory locations to 0, if the application allows overlong, user-controlled keywords when writing PNG files. The png_handle_tEXT() vulnerability may be exploited by an attacker to potentially consume all memory on a users system when a specially crafted PNG file is opened.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.35"

References

▸ GLSA 200804-15 libpng: Execution of arbitrary code this version unaffected high remote 2008-04-15

A vulnerability in libpng may allow for execution of arbitrary code in certain applications that handle untrusted images.

Announced
2008-04-15
Revised
2008-04-15
Access
remote
Bugs
#217047
Advisory
https://security.gentoo.org/glsa/200804-15

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.2.26-r1>= 1.2.26-r1

Background

libpng is a free ANSI C library used to process and manipulate PNG images.

Description

Tavis Ormandy of the Google Security Team discovered that libpng does not handle zero-length unknown chunks in PNG files correctly, which might lead to memory corruption in applications that call png_set_read_user_chunk_fn() or png_set_keep_unknown_chunks().

Impact

A remote attacker could entice a user or automated system to process a specially crafted PNG image in an application using libpng and possibly execute arbitrary code with the privileges of the user running the application. Note that processing of unknown chunks is disabled by default in most PNG applications, but some such as ImageMagick are affected.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.26-r1"

References

▸ GLSA 200711-08 libpng: Multiple Denials of Service this version unaffected normal remote 2007-11-07

Several vulnerabilities in libpng may allow a remote attacker to crash applications that handle untrusted images.

Announced
2007-11-07
Revised
2007-11-07
Access
remote
Bugs
#195261
Advisory
https://security.gentoo.org/glsa/200711-08

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.2.21-r3>= 1.2.21-r3

Background

libpng is a free ANSI C library used to process and manipulate PNG images.

Description

An off-by-one error when handling ICC profile chunks in the png_set_iCCP() function was discovered (CVE-2007-5266). George Cook and Jeff Phillips reported several errors in pngrtran.c, the use of logical instead of a bitwise functions and incorrect comparisons (CVE-2007-5268). Tavis Ormandy reported out-of-bounds read errors in several PNG chunk handling functions (CVE-2007-5269).

Impact

A remote attacker could craft an image that when processed or viewed by an application using libpng would cause the application to terminate abnormally.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.21-r3"

References

▸ GLSA 200705-24 libpng: Denial of service this version unaffected normal remote 2007-05-31

A vulnerability in libpng may allow a remote attacker to crash applications that handle untrusted images.

Announced
2007-05-31
Revised
2007-05-31
Access
remote
Bugs
#178004
Advisory
https://security.gentoo.org/glsa/200705-24

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.2.17>= 1.2.17

Background

libpng is a free ANSI C library used to process and manipulate PNG images.

Description

Mats Palmgren fixed an error in file pngrutil.c in which the trans[] array might be not allocated because of images with a bad tRNS chunk CRC value.

Impact

A remote attacker could craft an image that when processed or viewed by an application using libpng causes the application to terminate abnormally.

Workaround

There is no known workaround at this time.

Resolution

Please note that due to separate bugs in libpng 1.2.17, Gentoo does not provide libpng-1.2.17 but libpng-1.2.18. All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.18"

References

▸ GLSA 200611-09 libpng: Denial of service this version unaffected normal remote 2006-11-17

A vulnerability in libpng may allow a remote attacker to crash applications that handle untrusted images.

Announced
2006-11-17
Revised
2006-11-17
Access
remote
Bugs
#154380
Advisory
https://security.gentoo.org/glsa/200611-09

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*< 1.2.13>= 1.2.13

Background

libpng is a free ANSI C library used to process and manipulate PNG images.

Description

Tavis Ormandy of the Gentoo Linux Security Audit Team discovered that a vulnerability exists in the sPLT chunk handling code of libpng, a large sPLT chunk may cause an application to attempt to read out of bounds.

Impact

A remote attacker could craft an image that when processed or viewed by an application using libpng causes the application to terminate abnormally.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.13"

References

▸ GLSA 200607-06 libpng: Buffer overflow this version unaffected normal remote 2006-07-19

A buffer overflow has been found in the libpng library that could lead to the execution of arbitrary code.

Announced
2006-07-19
Revised
2006-07-19
Access
remote
Bugs
#138433 #138672
Advisory
https://security.gentoo.org/glsa/200607-06

Affected packages

PackageArchVulnerableUnaffected
app-emulation/emul-linux-x86-baselibsamd64< 2.5.1>= 2.5.1
media-libs/libpng*< 1.2.12>= 1.2.12

Background

libpng is an open, extensible image format library, with lossless compression.

Description

In pngrutil.c, the function png_decompress_chunk() allocates insufficient space for an error message, potentially overwriting stack data, leading to a buffer overflow.

Impact

By enticing a user to load a maliciously crafted PNG image, an attacker could execute arbitrary code with the rights of the user, or crash the application using the libpng library, such as the emul-linux-x86-baselibs.

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.12"

All AMD64 emul-linux-x86-baselibs users should also upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-emulation/emul-linux-x86-baselibs-2.5.1"

References

▸ GLSA 200408-03 libpng: Numerous vulnerabilities this version unaffected normal remote 2004-08-05

libpng contains numerous vulnerabilities potentially allowing an attacker to perform a Denial of Service attack or even execute arbitrary code.

Announced
2004-08-05
Revised
2004-08-05
Access
remote
Bugs
#59424
Advisory
https://security.gentoo.org/glsa/200408-03

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*<= 1.2.5-r7>= 1.2.5-r8

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several other programs, including web browsers and potentially server processes.

Description

libpng contains numerous vulnerabilities including null pointer dereference errors and boundary errors in various functions.

Impact

An attacker could exploit these vulnerabilities to cause programs linked against the library to crash or execute arbitrary code with the permissions of the user running the vulnerable program, which could be the root user.

Workaround

There is no known workaround at this time. All users are encouraged to upgrade to the latest available version.

Resolution

All libpng users should upgrade to the latest stable version:

# emerge sync

# emerge -pv ">=media-libs/libpng-1.2.5-r8"
# emerge ">=media-libs/libpng-1.2.5-r8"

You should also run revdep-rebuild to rebuild any packages that depend on older versions of libpng :

# revdep-rebuild

References

▸ GLSA 200407-06 libpng: Buffer overflow on row buffers this version unaffected normal remote 2004-07-08

libpng contains a buffer overflow vulnerability potentially allowing an attacker to perform a Denial of Service attack or even execute arbitrary code.

Announced
2004-07-08
Revised
2004-07-08
Access
remote
Bugs
#56307
Advisory
https://security.gentoo.org/glsa/200407-06

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*<= 1.2.5-r6>= 1.2.5-r7

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images. It is used by several other programs, including web browsers and potentially server processes.

Description

Due to a wrong calculation of loop offset values, libpng contains a buffer overflow vulnerability on the row buffers. This vulnerability was initially patched in January 2003 but since it has been discovered that libpng contains the same vulnerability in two other places.

Impact

An attacker could exploit this vulnerability to cause programs linked against the library to crash or execute arbitrary code with the permissions of the user running the vulnerable program, which could be the root user.

Workaround

There is no known workaround at this time. All users are encouraged to upgrade to the latest available version.

Resolution

All libpng users should upgrade to the latest stable version:

# emerge sync

# emerge -pv ">=media-libs/libpng-1.2.5-r7"
# emerge ">=media-libs/libpng-1.2.5-r7"

You should also run revdep-rebuild to rebuild any packages that depend on older versions of libpng :

# revdep-rebuild

References

▸ GLSA 200405-06 libpng denial of service vulnerability this version unaffected normal remote 2004-05-14

A bug in the libpng library can be abused to crash programs making use of that library to decode PNG images.

Announced
2004-05-14
Revised
2004-05-14
Access
remote
Bugs
#49887
Advisory
https://security.gentoo.org/glsa/200405-06

Affected packages

PackageArchVulnerableUnaffected
media-libs/libpng*<= 1.2.5-r4>= 1.2.5-r5

Background

libpng is a standard library used to process PNG (Portable Network Graphics) images.

Description

libpng provides two functions (png_chunk_error and png_chunk_warning) for default error and warning messages handling. These functions do not perform proper bounds checking on the provided message, which is limited to 64 bytes. Programs linked against this library may crash when handling a malicious PNG image.

Impact

This vulnerability could be used to crash various programs using the libpng library, potentially resulting in a denial of service attack on vulnerable daemon processes.

Workaround

There is no known workaround at this time. All users are advised to upgrade to the latest available version of libpng.

Resolution

All users of libpng should upgrade to the latest stable version:

# emerge sync

# emerge -pv ">=media-libs/libpng-1.2.5-r5"
# emerge ">=media-libs/libpng-1.2.5-r5"

You should also run revdep-rebuild to rebuild any packages that depend on older versions of libpng :

# revdep-rebuild

References