Gentoo: Firebird Buffer overflow
Posted by Benjamin D. Thomas   
Gentoo A vulnerability has been discovered in Firebird, allowing for the execution of arbitrary code.Cody Pierce from TippingPoint DVLabs has discovered a buffer overflow when processing "connect" requests with an overly large "p_cnct_count" value.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200707-01
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: Firebird: Buffer overflow
      Date: July 01, 2007
      Bugs: #181811
        ID: 200707-01

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

Synopsis
========

A vulnerability has been discovered in Firebird, allowing for the
execution of arbitrary code.

Background
==========

Firebird is an open source relational database that runs on Linux,
Windows, and various UNIX systems.

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

    -------------------------------------------------------------------
     Package          /  Vulnerable  /                      Unaffected
    -------------------------------------------------------------------
  1  dev-db/firebird       < 2.0.1                            >= 2.0.1

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

Cody Pierce from TippingPoint DVLabs has discovered a buffer overflow
when processing "connect" requests with an overly large "p_cnct_count"
value.

Impact
======

An unauthenticated remote attacker could send a specially crafted
request to a vulnerable server, possibly resulting in the execution of
arbitrary code with the privileges of the user running Firebird.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All Firebird users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=dev-db/firebird-2.0.1"

References
==========

  [ 1 ] CVE-2007-3181
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-3181

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

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

  http://security.gentoo.org/glsa/glsa-200707-01.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 2007 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