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

SecurityTracker
Archives


 


Category:   Application (Generic)  >   CVS Vendors:   GNU [multiple authors]
(Debian Issues Fix) CVS Has NULL Termination, Integer Overflow, and Double Free Bugs That Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1010510
SecurityTracker URL:  http://securitytracker.com/id/1010510
CVE Reference:   CVE-2004-0416, CVE-2004-0417, CVE-2004-0418   (Links to External Site)
Date:  Jun 17 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:   Debian has released a fix for the stable distribution (woody) in version 1.11.1p1debian-9woody7 and for the unstable distribution (sid) in version 1.12.9-1.

Debian GNU/Linux 3.0 alias woody:

Source archives:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7.dsc
Size/MD5 checksum: 693 808c55e071608254b399c5cf8288c478
http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7.diff.gz
Size/MD5 checksum: 55929 5c87146893651805658b497c8d2164f3
http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian.orig.tar.gz
Size/MD5 checksum: 2621658 500965ab9702b31605f8c58aa21a6205

Alpha architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_alpha.deb
Size/MD5 checksum: 1178992 d411cdd545809660443ff35d49c6e105

ARM architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_arm.deb
Size/MD5 checksum: 1106154 5839fcf6673e32d51fc8814591cb49d1

Intel IA-32 architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_i386.deb
Size/MD5 checksum: 1086800 1283329c4e9337eb1308945ab77738a7

Intel IA-64 architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_ia64.deb
Size/MD5 checksum: 1272232 e71070f4b415c03b996fbc5e14006094

HP Precision architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_hppa.deb
Size/MD5 checksum: 1148086 8e70b23bba46da919774913f5b3d3b83

Motorola 680x0 architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_m68k.deb
Size/MD5 checksum: 1066546 e7f59327f9afdeeec311178839c6997e

Big endian MIPS architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_mips.deb
Size/MD5 checksum: 1130478 08811baa91dabf7619b2ca9bb3c84fe6

Little endian MIPS architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_mipsel.deb
Size/MD5 checksum: 1131936 6f51edb9c8f078f8c37ffeb87db686e7

PowerPC architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_powerpc.deb
Size/MD5 checksum: 1116890 c50418a92b897b0bd698a389a3dd5ba5

IBM S/390 architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_s390.deb
Size/MD5 checksum: 1097614 1e967b9a0ea2f2feaf4f83b4fb082750

Sun Sparc architecture:

http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_sparc.deb
Size/MD5 checksum: 1107928 49e348f931f71a861140995edb0fcd30

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

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:  [SECURITY] [DSA 519-1] New CVS packages fix several potential security problems


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- --------------------------------------------------------------------------
Debian Security Advisory DSA 519-1                     security@debian.org
http://www.debian.org/security/                             Martin Schulze
June 15th, 2004                         http://www.debian.org/security/faq
- --------------------------------------------------------------------------

Package        : cvs
Vulnerability  : several
Problem-Type   : remote
Debian-specific: no
CVE ID         : CAN-2004-0416 CAN-2004-0417 CAN-2004-0418

Sebastian Krahmer and Stefan Esser discovered several vulnerabilities
in the CVS server, which serves the popular Concurrent Versions
System.  The Common Vulnerability and Exposures project identifies the
following problems:

CAN-2004-0416: double-free() in error_prog_name

CAN-2004-0417: argument integer overflow 

CAN-2004-0418: out of bound writes in serve_notify()

For the stable distribution (woody) this problem has been fixed in
version 1.11.1p1debian-9woody7.

For the unstable distribution (sid) this problem has been fixed in
version 1.12.9-1.

We recommend that you upgrade your cvs package.


Upgrade Instructions
- --------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


Debian GNU/Linux 3.0 alias woody
- --------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7.dsc
      Size/MD5 checksum:      693 808c55e071608254b399c5cf8288c478
    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7.diff.gz
      Size/MD5 checksum:    55929 5c87146893651805658b497c8d2164f3
    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian.orig.tar.gz
      Size/MD5 checksum:  2621658 500965ab9702b31605f8c58aa21a6205

  Alpha architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_alpha.deb
      Size/MD5 checksum:  1178992 d411cdd545809660443ff35d49c6e105

  ARM architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_arm.deb
      Size/MD5 checksum:  1106154 5839fcf6673e32d51fc8814591cb49d1

  Intel IA-32 architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_i386.deb
      Size/MD5 checksum:  1086800 1283329c4e9337eb1308945ab77738a7

  Intel IA-64 architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_ia64.deb
      Size/MD5 checksum:  1272232 e71070f4b415c03b996fbc5e14006094

  HP Precision architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_hppa.deb
      Size/MD5 checksum:  1148086 8e70b23bba46da919774913f5b3d3b83

  Motorola 680x0 architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_m68k.deb
      Size/MD5 checksum:  1066546 e7f59327f9afdeeec311178839c6997e

  Big endian MIPS architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_mips.deb
      Size/MD5 checksum:  1130478 08811baa91dabf7619b2ca9bb3c84fe6

  Little endian MIPS architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_mipsel.deb
      Size/MD5 checksum:  1131936 6f51edb9c8f078f8c37ffeb87db686e7

  PowerPC architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_powerpc.deb
      Size/MD5 checksum:  1116890 c50418a92b897b0bd698a389a3dd5ba5

  IBM S/390 architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_s390.deb
      Size/MD5 checksum:  1097614 1e967b9a0ea2f2feaf4f83b4fb082750

  Sun Sparc architecture:

    http://security.debian.org/pool/updates/main/c/cvs/cvs_1.11.1p1debian-9woody7_sparc.deb
      Size/MD5 checksum:  1107928 49e348f931f71a861140995edb0fcd30


  These files will probably be moved into the stable distribution on
  its next update.

- ---------------------------------------------------------------------------------
For apt-get: deb http://security.debian.org/ stable/updates main
For dpkg-ftp: ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org
Package info: `apt-cache show <pkg>' and http://packages.debian.org/<pkg>

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

iD8DBQFAzrK8W5ql+IAeqTIRAr8XAJ94PsjJeiEmk+30TWRQqTu20hTyIACeMmZp
xDgNabtz7WdT+TlC3In2tZk=
=iKaZ
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-security-announce-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

 
 


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