<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd"> <glsa id="201502-10"> <title>libpng: User-assisted execution of arbitrary code</title> <synopsis>Two vulnerabilities have been found in libpng, possibly resulting in execution of arbitrary code. </synopsis> <product type="ebuild">libpng</product> <announced>2015-02-15</announced> <revised count="3">2017-01-03</revised> <bug>531264</bug> <bug>533358</bug> <access>local, remote</access> <affected> <package name="media-libs/libpng" auto="yes" arch="*"> <unaffected range="ge">1.6.16</unaffected> <unaffected range="ge" slot="1.5">1.5.21</unaffected> <unaffected range="ge" slot="1.2">1.2.52</unaffected> <vulnerable range="lt">1.6.16</vulnerable> </package> </affected> <background> <p>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. </p> </background> <description> <p>Two vulnerabilities have been discovered in libpng:</p> <ul> <li>The png_user_version_check function contains an out-of-bounds memory access error (libpng 1.6.15 Release Notes) </li> <li>The png_combine_row function contains an integer overflow error, which could result in a heap-based buffer overflow (CVE-2014-9495) </li> </ul> </description> <impact type="normal"> <p>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. </p> </impact> <workaround> <p>There is no known workaround at this time.</p> </workaround> <resolution> <p>All libpng 1.6 users should upgrade to the latest version:</p> <code> # emerge --sync # emerge --ask --oneshot --verbose ">=media-libs/libpng-1.6.16" </code> <p>All libpng 1.5 users should upgrade to the latest version:</p> <code> # emerge --sync # emerge --ask --oneshot --verbose ">=media-libs/libpng-1.5.21" </code> </resolution> <references> <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2014-9495">CVE-2014-9495</uri> <uri link="http://www.libpng.org/pub/png/src/libpng-1.6.15-README.txt"> libpng 1.6.15 Release Notes </uri> </references> <metadata tag="requester" timestamp="2015-01-15T22:55:48Z"> BlueKnight </metadata> <metadata tag="submitter" timestamp="2017-01-03T04:39:38Z">ackle</metadata> </glsa>