Gentoo: Netpbm Buffer overflow in pnmtopng
Posted by Benjamin D. Thomas   
Gentoo The pnmtopng utility, part of the Netpbm tools, contains a vulnerability which can potentially result in the execution of arbitrary code.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200510-18
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: Netpbm: Buffer overflow in pnmtopng
      Date: October 20, 2005
      Bugs: #109705
        ID: 200510-18

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

The pnmtopng utility, part of the Netpbm tools, contains a
vulnerability which can potentially result in the execution of
arbitrary code.

Background
==========

Netpbm is a package of 220 graphics programs and a programming library,
including pnmtopng, a tool to convert PNM image files to the PNG
format.

Affected packages
=================

    -------------------------------------------------------------------
     Package            /  Vulnerable  /                    Unaffected
    -------------------------------------------------------------------
  1  media-libs/netpbm       < 10.29                          >= 10.29

Description
===========

RedHat reported that pnmtopng is vulnerable to a buffer overflow.

Impact
======

An attacker could craft a malicious PNM file and entice a user to run
pnmtopng on it, potentially resulting in the execution of arbitrary
code with the permissions of the user running pnmtopng.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All Netpbm users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=media-libs/netpbm-10.29"

References
==========

  [ 1 ] CAN-2005-2978
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2978

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200510-18.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2005 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.0