SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   CVS Vendors:   GNU [multiple authors]
(Fedora Issues Fix for RH Linux) CVS Has NULL Termination, Integer Overflow, and Double Free Bugs That Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1011573
SecurityTracker URL:  http://securitytracker.com/id/1011573
CVE Reference:   CVE-2004-0414, CVE-2004-0416, CVE-2004-0417, CVE-2004-0418   (Links to External Site)
Date:  Oct 7 2004
Impact:   Denial of service via network, Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): stable release 1.11.16 and prior versions; feature release 1.12.8 and prior versions
Description:   Several vulnerabilities were reported in CVS. A remote user can execute arbitrary code on the target system.

Stefan Esser of e-matters reported that an audit performed by e-matters and by Sebastian Krahmer from SuSE has uncovered several flaws.

The report also indicated that Derek Robert Price discovered a null-termination issue regarding "Entry" lines [CVE: CVE-2004-0414] that was introduced by a previous CVS security patch. A remote user can execute arbitrary code on the target system.

It is reported that the error_prog_name() function contains a double-free bug [CVE: CVE-2004-0416]. A remote user can invoke the 'Argumentx' command on an empty list to trigger the flaw and potentially execute arbitrary code.

It is also reported that the serve_notify() function does not properly process empty data lines [CVE: CVE-2004-0418]. A remote user can reportedly supply an empty data line to cause a buffer boundary error and possibly write a single byte outside of the buffer. Arbitrary code execution may be possible, the report said.

It is also reported that there are a variety of integer multiplication overflows [CVE: CVE-2004-0417].

Several other bugs were reported that can only be triggered by an authenticated user with CVSROOT commit access.

It is also reported that there is an integer overflow in serve_max_dotdot() that may allow a remote user to crash a forked CVS process. This may cause data to remain in the temporary file directory. On non-partitioned servers, a remote user may be able to consume all available disk space.

The vendor was reportedly notified on May 27, 2004.

The original advisory is available at:

http://security.e-matters.de/advisories/092004.txt

Impact:   A remote user can execute arbitrary code on the target system.

A remote user can cause CVS to crash.

Solution:   Fedora has released a fix.

Red Hat Linux 7.3:

SRPM:
http://download.fedoralegacy.org/redhat/7.3/updates/SRPMS/cvs-1.11.1p1-16.legacy.2.src.rpm

i386:
http://download.fedoralegacy.org/redhat/7.3/updates/i386/cvs-1.11.1p1-16.legacy.2.i386.rpm

Red Hat Linux 9:

SRPM:
http://download.fedoralegacy.org/redhat/9/updates/SRPMS/cvs-1.11.2-24.legacy.src.rpm

i386:=20
http://download.fedoralegacy.org/redhat/9/updates/i386/cvs-1.11.2-24.legacy.i386.rpm

The verification checksums are:

d309756c60dcf33235581f2174db39fe103bac27 7.3/updates/SRPMS/cvs-1.11.1p1-16.legacy.2.src.rpm
9620756fc080096881f062b6272306a1ba57fb40 7.3/updates/i386/cvs-1.11.1p1-16.legacy.2.i386.rpm
ffa2ea4c2689dbbd304364a14517a0e9f1747be2 9/updates/SRPMS/cvs-1.11.2-24.legacy.src.rpm
9f3eac397a31464cc39bad75877e6f5a11c7c31d 9/updates/i386/cvs-1.11.2-24.legacy.i386.rpm

Vendor URL:  www.cvshome.org/ (Links to External Site)
Cause:   Boundary error, Input validation error, State error
Underlying OS:  Linux (Red Hat Linux)
Underlying OS Comments:  7.3, 9

Message History:   This archive entry is a follow-up to the message listed below.
Jun 9 2004 CVS Has NULL Termination, Integer Overflow, and Double Free Bugs That Let Remote Users Execute Arbitrary Code



 Source Message Contents

Subject:  [Full-Disclosure] [FLSA-2004:1735] Updated cvs packages fix security vulnerabilities



--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

-----------------------------------------------------------------------
               Fedora Legacy Update Advisory

Synopsis:          Updated cvs resolves security vulnerabilities
Advisory ID:       FLSA:1735
Issue date:        2004-10-07
Product:           Red Hat Linux
Keywords:          Security
Cross references:  https://bugzilla.fedora.us/show_bug.cgi?id=3D1735
CVE Names:         CAN-2004-0414, CAN-2004-0416, CAN-2004-0417,
                   CAN-2004-0418, CAN-2004-0778
-----------------------------------------------------------------------


-----------------------------------------------------------------------
1. Topic:

Updated cvs packages that fix a security vulnerabilities are now
available.

CVS is a version control system frequently used to manage source code
repositories.

2. Relevant releases/architectures:

Red Hat Linux 7.3 - i386
Red Hat Linux 9 - i386

3. Problem description:

While investigating a previously fixed vulnerability, Derek Price
discovered a flaw relating to malformed "Entry" lines which lead to a
missing NULL terminator. The Common Vulnerabilities and Exposures
project (cve.mitre.org) has assigned the name CAN-2004-0414 to this issue.

Stefan Esser and Sebastian Krahmer conducted an audit of CVS and fixed a
number of issues that may have had security consequences.

Among the issues deemed likely to be exploitable were:

- a double-free relating to the error_prog_name string (CAN-2004-0416)
- an argument integer overflow (CAN-2004-0417)
- out-of-bounds writes in serv_notify (CAN-2004-0418).

An attacker who has access to a CVS server may be able to execute arbitrary
code under the UID on which the CVS server is executing.

Users of CVS are advised to upgrade to this updated package, which contains
backported patches correcting these issues.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.  Only those
RPMs which are currently installed will be updated.  Those RPMs which are
not installed but included in the list will not be updated.  Note that you
can also use wildcards (*.rpm) if your current directory *only* contains
the desired RPMs.

Please note that this update is also available via yum and apt.  Many
people find this an easier way to apply updates.  To use yum issue:

yum update

or to use apt:

apt-get update; apt-get upgrade

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.  This assumes that you have yum or
apt-get configured for obtaining Fedora Legacy content. Please visit
http://www.fedoralegacy.org/docs/ for directions on how to configure yum
and apt-get.

5. Bug IDs fixed:

http://bugzilla.fedora.us - 1735 - cvs package fixes security issues
CAN-2004-0414,0416,0417,0418

6. RPMs required:

Red Hat Linux 7.3:

SRPM:
http://download.fedoralegacy.org/redhat/7.3/updates/SRPMS/cvs-1.11.1p1-16.l=
egacy.2.src.rpm

i386:
http://download.fedoralegacy.org/redhat/7.3/updates/i386/cvs-1.11.1p1-16.le=
gacy.2.i386.rpm

Red Hat Linux 9:

SRPM:
http://download.fedoralegacy.org/redhat/9/updates/SRPMS/cvs-1.11.2-24.legac=
y.src.rpm

i386:=20
http://download.fedoralegacy.org/redhat/9/updates/i386/cvs-1.11.2-24.legacy=
=2Ei386.rpm

7. Verification:

SHA1 sum                                 Package Name
---------------------------------------------------------------------------

d309756c60dcf33235581f2174db39fe103bac27  7.3/updates/SRPMS/cvs-1.11.1p1-16=
=2Elegacy.2.src.rpm
9620756fc080096881f062b6272306a1ba57fb40  7.3/updates/i386/cvs-1.11.1p1-16.=
legacy.2.i386.rpm
ffa2ea4c2689dbbd304364a14517a0e9f1747be2  9/updates/SRPMS/cvs-1.11.2-24.leg=
acy.src.rpm
9f3eac397a31464cc39bad75877e6f5a11c7c31d  9/updates/i386/cvs-1.11.2-24.lega=
cy.i386.rpm

These packages are GPG signed by Fedora Legacy for security.  Our key is
available from http://www.fedoralegacy org/about/security.php

You can verify each package with the following command:

    rpm --checksig -v <filename>

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the sha1sum with the following command:

    sha1sum <filename>

8. References:

https://rhn.redhat.com/errata/RHSA-2004-233.html
https://ccvs.cvshome.org/source/browse/ccvs/src/history.c?r1=3D1.73&r2=3D1.=
74      =20

9. Contact:

The Fedora Legacy security contact is <secnotice@fedoralegacy.org>. More
project details at http://www.fedoralegacy.org

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

--1yeeQ81UyVL57Vl7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBZXkKYzuFKFF44qURAhCGAKDgeQKNWh97UIvb3aV+AQowrq5f7wCg0Jom
+fdrROSbHgWIPIKMkdn8WUo=
=CDRe
-----END PGP SIGNATURE-----

--1yeeQ81UyVL57Vl7--

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC