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

SecurityTracker
Archives


 


Category:   Application (Generic)  >   CVS Vendors:   GNU [multiple authors]
(Red Hat Issues Fix for RH Enteprise Linux) CVS Has NULL Termination, Integer Overflow, and Double Free Bugs That Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1010440
SecurityTracker URL:  http://securitytracker.com/id/1010440
CVE Reference:   CVE-2004-0414, CVE-2004-0416, CVE-2004-0417, CVE-2004-0418   (Links to External Site)
Date:  Jun 9 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:   Red Hat has released a fix.

Red Hat Enterprise Linux AS (Advanced Server) version 2.1:

SRPMS:
ftp://updates.redhat.com/enterprise/2.1AS/en/os/SRPMS/cvs-1.11.1p1-16.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.1p1-16.i386.rpm

ia64:
Available from Red Hat Network: cvs-1.11.1p1-16.ia64.rpm

Red Hat Linux Advanced Workstation 2.1:

SRPMS:
ftp://updates.redhat.com/enterprise/2.1AW/en/os/SRPMS/cvs-1.11.1p1-16.src.rpm

ia64:
Available from Red Hat Network: cvs-1.11.1p1-16.ia64.rpm

Red Hat Enterprise Linux ES version 2.1:

SRPMS:
ftp://updates.redhat.com/enterprise/2.1ES/en/os/SRPMS/cvs-1.11.1p1-16.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.1p1-16.i386.rpm

Red Hat Enterprise Linux WS version 2.1:

SRPMS:
ftp://updates.redhat.com/enterprise/2.1WS/en/os/SRPMS/cvs-1.11.1p1-16.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.1p1-16.i386.rpm

Red Hat Enterprise Linux AS version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3AS/en/os/SRPMS/cvs-1.11.2-24.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.2-24.i386.rpm

ia64:
Available from Red Hat Network: cvs-1.11.2-24.ia64.rpm

ppc:
Available from Red Hat Network: cvs-1.11.2-24.ppc.rpm

ppc64:
Available from Red Hat Network: cvs-1.11.2-24.ppc64.rpm

s390:
Available from Red Hat Network: cvs-1.11.2-24.s390.rpm

s390x:
Available from Red Hat Network: cvs-1.11.2-24.s390x.rpm

x86_64:
Available from Red Hat Network: cvs-1.11.2-24.x86_64.rpm

Red Hat Desktop version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3desktop/en/os/SRPMS/cvs-1.11.2-24.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.2-24.i386.rpm

x86_64:
Available from Red Hat Network: cvs-1.11.2-24.x86_64.rpm

Red Hat Enterprise Linux ES version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3ES/en/os/SRPMS/cvs-1.11.2-24.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.2-24.i386.rpm

ia64:
Available from Red Hat Network: cvs-1.11.2-24.ia64.rpm

x86_64:
Available from Red Hat Network: cvs-1.11.2-24.x86_64.rpm

Red Hat Enterprise Linux WS version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3WS/en/os/SRPMS/cvs-1.11.2-24.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.2-24.i386.rpm

ia64:
Available from Red Hat Network: cvs-1.11.2-24.ia64.rpm

x86_64:
Available from Red Hat Network: cvs-1.11.2-24.x86_64.rpm


The verification checksums are:

MD5 sum Package Name
6ab08aa7500b7a11765e368581003680 cvs-1.11.1p1-16.i386.rpm
df21ca3d88391677f710ad351725fde0 cvs-1.11.1p1-16.ia64.rpm
93629ecea74e4699e208eaeaad1a0560 cvs-1.11.1p1-16.src.rpm
589b87ab2e0d96047d9ffe0b39cd9528 cvs-1.11.2-24.i386.rpm
d4ad9ccfa0dabbf6b568e197a897f7d3 cvs-1.11.2-24.ia64.rpm
ea79fbc05a95d97735a897f01770fdfd cvs-1.11.2-24.ppc.rpm
704dd6dd8be7e2ead353c5fd399d4cc8 cvs-1.11.2-24.ppc64.rpm
76caa8cb35ff6a082af8d3301e4866ca cvs-1.11.2-24.s390.rpm
8116f490790c1a393c51b72fead9d48f cvs-1.11.2-24.s390x.rpm
865473c922858a56e30eb9f9ee6f84ac cvs-1.11.2-24.src.rpm
6cb397fe4e7dcec66a7b8b4249f36176 cvs-1.11.2-24.x86_64.rpm

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

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:  [RHSA-2004:233-01] Updated cvs package fixes security issues


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

- ---------------------------------------------------------------------
                   Red Hat Security Advisory

Synopsis:          Updated cvs package fixes security issues
Advisory ID:       RHSA-2004:233-01
Issue date:        2004-06-09
Updated on:        2004-06-09
Product:           Red Hat Enterprise Linux
Keywords:          
Cross references:  
Obsoletes:         RHSA-2004:190
CVE Names:         CAN-2004-0414 CAN-2004-0416 CAN-2004-0417 CAN-2004-0418
- ---------------------------------------------------------------------

1. Topic:

An updated cvs package that fixes several server vulnerabilities, which could
be exploited by a malicious client, is now available.

2. Relevant releases/architectures:

Red Hat Enterprise Linux AS (Advanced Server) version 2.1 - i386, ia64
Red Hat Linux Advanced Workstation 2.1 - ia64
Red Hat Enterprise Linux ES version 2.1 - i386
Red Hat Enterprise Linux WS version 2.1 - i386
Red Hat Enterprise Linux AS version 3 - i386, ia64, ppc, ppc64, s390, s390x, x86_64
Red Hat Desktop version 3 - i386, x86_64
Red Hat Enterprise Linux ES version 3 - i386, ia64, x86_64
Red Hat Enterprise Linux WS version 3 - i386, ia64, x86_64

3. Problem description:

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

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.

Red Hat would like to thank Stefan Esser, Sebastian Krahmer, and Derek
Price for auditing, disclosing, and providing patches for 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 Red Hat Network.  Many
people find this an easier way to apply updates.  To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

If up2date fails to connect to Red Hat Network due to SSL
Certificate Errors, you need to install a version of the
up2date client with an updated certificate.  The latest version of
up2date is available from the Red Hat FTP site and may also be
downloaded directly from the RHN website:

https://rhn.redhat.com/help/latest-up2date.pxt

5. RPMs required:

Red Hat Enterprise Linux AS (Advanced Server) version 2.1:

SRPMS:
ftp://updates.redhat.com/enterprise/2.1AS/en/os/SRPMS/cvs-1.11.1p1-16.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.1p1-16.i386.rpm

ia64:
Available from Red Hat Network: cvs-1.11.1p1-16.ia64.rpm

Red Hat Linux Advanced Workstation 2.1:

SRPMS:
ftp://updates.redhat.com/enterprise/2.1AW/en/os/SRPMS/cvs-1.11.1p1-16.src.rpm

ia64:
Available from Red Hat Network: cvs-1.11.1p1-16.ia64.rpm

Red Hat Enterprise Linux ES version 2.1:

SRPMS:
ftp://updates.redhat.com/enterprise/2.1ES/en/os/SRPMS/cvs-1.11.1p1-16.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.1p1-16.i386.rpm

Red Hat Enterprise Linux WS version 2.1:

SRPMS:
ftp://updates.redhat.com/enterprise/2.1WS/en/os/SRPMS/cvs-1.11.1p1-16.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.1p1-16.i386.rpm

Red Hat Enterprise Linux AS version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3AS/en/os/SRPMS/cvs-1.11.2-24.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.2-24.i386.rpm

ia64:
Available from Red Hat Network: cvs-1.11.2-24.ia64.rpm

ppc:
Available from Red Hat Network: cvs-1.11.2-24.ppc.rpm

ppc64:
Available from Red Hat Network: cvs-1.11.2-24.ppc64.rpm

s390:
Available from Red Hat Network: cvs-1.11.2-24.s390.rpm

s390x:
Available from Red Hat Network: cvs-1.11.2-24.s390x.rpm

x86_64:
Available from Red Hat Network: cvs-1.11.2-24.x86_64.rpm

Red Hat Desktop version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3desktop/en/os/SRPMS/cvs-1.11.2-24.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.2-24.i386.rpm

x86_64:
Available from Red Hat Network: cvs-1.11.2-24.x86_64.rpm

Red Hat Enterprise Linux ES version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3ES/en/os/SRPMS/cvs-1.11.2-24.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.2-24.i386.rpm

ia64:
Available from Red Hat Network: cvs-1.11.2-24.ia64.rpm

x86_64:
Available from Red Hat Network: cvs-1.11.2-24.x86_64.rpm

Red Hat Enterprise Linux WS version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3WS/en/os/SRPMS/cvs-1.11.2-24.src.rpm

i386:
Available from Red Hat Network: cvs-1.11.2-24.i386.rpm

ia64:
Available from Red Hat Network: cvs-1.11.2-24.ia64.rpm

x86_64:
Available from Red Hat Network: cvs-1.11.2-24.x86_64.rpm



6. Verification:

MD5 sum                          Package Name
- --------------------------------------------------------------------------
6ab08aa7500b7a11765e368581003680 cvs-1.11.1p1-16.i386.rpm
df21ca3d88391677f710ad351725fde0 cvs-1.11.1p1-16.ia64.rpm
93629ecea74e4699e208eaeaad1a0560 cvs-1.11.1p1-16.src.rpm
589b87ab2e0d96047d9ffe0b39cd9528 cvs-1.11.2-24.i386.rpm
d4ad9ccfa0dabbf6b568e197a897f7d3 cvs-1.11.2-24.ia64.rpm
ea79fbc05a95d97735a897f01770fdfd cvs-1.11.2-24.ppc.rpm
704dd6dd8be7e2ead353c5fd399d4cc8 cvs-1.11.2-24.ppc64.rpm
76caa8cb35ff6a082af8d3301e4866ca cvs-1.11.2-24.s390.rpm
8116f490790c1a393c51b72fead9d48f cvs-1.11.2-24.s390x.rpm
865473c922858a56e30eb9f9ee6f84ac cvs-1.11.2-24.src.rpm
6cb397fe4e7dcec66a7b8b4249f36176 cvs-1.11.2-24.x86_64.rpm


These packages are GPG signed by Red Hat for security.  Our key is
available from https://www.redhat.com/security/team/key.html

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 md5sum with the following command:
    
    md5sum <filename>


7. References:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0414
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0416
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0417
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0418

8. Contact:

The Red Hat security contact is <secalert@redhat.com>.  More contact
details at https://www.redhat.com/security/team/contact.html

Copyright 2004 Red Hat, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFAxwoYXlSAg2UNWIIRArOFAKDElLw55sPiwuMJ4vTzADgY94dGUgCeMOsR
WiXoHWhnBClNzKn0kidfUXk=
=qJiD
-----END PGP SIGNATURE-----


-- 
Enterprise-watch-list mailing list
Enterprise-watch-list@redhat.com
https://www.redhat.com/mailman/listinfo/enterprise-watch-list

 
 


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