Gentoo: PeerCast Buffer overflow
Posted by Benjamin D. Thomas   
Gentoo PeerCast is vulnerable to a buffer overflow that may lead to the execution of arbitrary code.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200603-17
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: PeerCast: Buffer overflow
      Date: March 21, 2006
      Bugs: #123432
        ID: 200603-17

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

Synopsis
========

PeerCast is vulnerable to a buffer overflow that may lead to the
execution of arbitrary code.

Background
==========

PeerCast is a Peer to Peer broadcasting technology for listening to
radio and watching video on the Internet.

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

    -------------------------------------------------------------------
     Package               /  Vulnerable  /                 Unaffected
    -------------------------------------------------------------------
  1  media-sound/peercast      < 0.1217                      >= 0.1217

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

INFIGO discovered a problem in the URL handling code. Buffers that are
allocated on the stack can be overflowed inside of nextCGIarg()
function.

Impact
======

By sending a specially crafted request to the HTTP server, a remote
attacker can cause a stack overflow, resulting in the execution of
arbitrary code.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All PeerCast users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=media-sound/peercast-0.1217"

References
==========

  [ 1 ] CVE-2006-1148
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2006-1148

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

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

  http://security.gentoo.org/glsa/glsa-200603-17.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 2006 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