Gentoo: 201311-11 CTorrent: User-assisted arbitrary code execution
Posted by Benjamin D. Thomas   
Gentoo A stack-based buffer overflow in CTorrent might allow a remote attacker to execute arbitrary code or cause a Denial of Service condition.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 201311-11
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 Severity: Normal
    Title: CTorrent: User-assisted arbitrary code execution
     Date: November 20, 2013
     Bugs: #266953
       ID: 201311-11

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

Synopsis
========

A stack-based buffer overflow in CTorrent might allow a remote attacker
to execute arbitrary code or cause a Denial of Service condition.

Background
==========

CTorrent is a BitTorrent client implemented in C++ to be lightweight
and quick.

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

    -------------------------------------------------------------------
     Package              /     Vulnerable     /            Unaffected
    -------------------------------------------------------------------
  1  net-p2p/ctorrent            < 3.3.2-r1               >= 3.3.2-r1

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

CTorrent contains a stack-based buffer overflow in the
btFiles::BuildFromMI function in trunk/btfiles.cpp.

Impact
======

A remote attacker could entice a user to open a specially crafted
torrent file using CTorrent, possibly resulting in execution of
arbitrary code with the privileges of the process or a Denial of
Service condition.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All CTorrent users should upgrade to the latest version:

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=net-p2p/ctorren-3.3.2-r1"

References
==========

[ 1 ] CVE-2009-1759
      http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2009-1759

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

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

 http://security.gentoo.org/glsa/glsa-201311-11.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
https://bugs.gentoo.org.

License

Copyright 2013 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.5