Operating System:

Published:

06 May 2003

Protect yourself against future threats.

-----BEGIN PGP SIGNED MESSAGE-----

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                     ESB-2003.0342 -- RHSA-2003:093-02
                Updated MySQL packages fix vulnerabilities
                                06 May 2003

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:                MySQL 3.23.55 and prior
Publisher:              Red Hat
Operating System:       Red Hat Linux 9
                        Red Hat Linux 8.0
                        Red Hat Linux 7.3
                        Red Hat Linux 7.2
                        Red Hat Linux 7.1
Impact:                 Root Compromise
                        Denial of Service
Access Required:        Existing Account
CVE Names:              CAN-2003-0073, CAN-2003-0150

Ref:                    ESB-2003.0329

- --------------------------BEGIN INCLUDED TEXT--------------------

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

Synopsis:          Updated MySQL packages fix vulnerabilities
Advisory ID:       RHSA-2003:093-02
Issue date:        2003-04-29
Updated on:        2003-05-02
Product:           Red Hat Linux
Keywords:          
Cross references:  
Obsoletes:         RHSA-2002:288
CVE Names:         CAN-2003-0073 CAN-2003-0150
- ---------------------------------------------------------------------

1. Topic:

Updated MySQL server packages fix both a double-free security
vulnerability and a root exploit security vulnerability.

[Updated 1 May 2003]
Added updated packages for Red Hat Linux 9, which is vulnerable to
CAN-2003-0150.

2. Relevant releases/architectures:

Red Hat Linux 7.1 - i386
Red Hat Linux 7.2 - i386, ia64
Red Hat Linux 7.3 - i386
Red Hat Linux 8.0 - i386
Red Hat Linux 9 - i386

3. Problem description:

MySQL is a multi-user, multi-threaded SQL database server.

A double-free vulnerability in mysqld, for MySQL before version 3.23.55,
allows attackers with MySQL access to cause a denial of service (crash) by
creating a carefully crafted client application. The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name
CAN-2003-0073 to this issue.

MySQL 3.23.55 and earlier creates world-writable files and allows mysql
users to gain root privileges by using the "SELECT * INFO OUTFILE" operator
to overwrite a configuration file and cause mysql to run as root upon
restart. The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CAN-2003-0150 to this issue.

All users are advised to upgrade to MySQL 3.23.56 contained within this
errata which is not vulnerable to these issues.

In addition to the security fixes, these erratum packages contain a
thread safe client library (libmysqlclient_r).

4. Solution:

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

Please note that this update is available via Red Hat Network.  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.

5. Bug IDs fixed (http://bugzilla.redhat.com/bugzilla for more info):

85898 - double-free vulnerability in mysqld < 3.23.55
85971 - possible root exploit in mysqld startup
77662 - mysql RPM's do not provide a thread safe library

6. RPMs required:

Red Hat Linux 7.1:

SRPMS:
ftp://updates.redhat.com/7.1/en/os/SRPMS/mysql-3.23.56-1.71.src.rpm

i386:
ftp://updates.redhat.com/7.1/en/os/i386/mysql-3.23.56-1.71.i386.rpm
ftp://updates.redhat.com/7.1/en/os/i386/mysql-server-3.23.56-1.71.i386.rpm
ftp://updates.redhat.com/7.1/en/os/i386/mysql-devel-3.23.56-1.71.i386.rpm

Red Hat Linux 7.2:

SRPMS:
ftp://updates.redhat.com/7.2/en/os/SRPMS/mysql-3.23.56-1.72.src.rpm

i386:
ftp://updates.redhat.com/7.2/en/os/i386/mysql-3.23.56-1.72.i386.rpm
ftp://updates.redhat.com/7.2/en/os/i386/mysql-server-3.23.56-1.72.i386.rpm
ftp://updates.redhat.com/7.2/en/os/i386/mysql-devel-3.23.56-1.72.i386.rpm

ia64:
ftp://updates.redhat.com/7.2/en/os/ia64/mysql-3.23.56-1.72.ia64.rpm
ftp://updates.redhat.com/7.2/en/os/ia64/mysql-server-3.23.56-1.72.ia64.rpm
ftp://updates.redhat.com/7.2/en/os/ia64/mysql-devel-3.23.56-1.72.ia64.rpm

Red Hat Linux 7.3:

SRPMS:
ftp://updates.redhat.com/7.3/en/os/SRPMS/mysql-3.23.56-1.73.src.rpm

i386:
ftp://updates.redhat.com/7.3/en/os/i386/mysql-3.23.56-1.73.i386.rpm
ftp://updates.redhat.com/7.3/en/os/i386/mysql-server-3.23.56-1.73.i386.rpm
ftp://updates.redhat.com/7.3/en/os/i386/mysql-devel-3.23.56-1.73.i386.rpm

Red Hat Linux 8.0:

SRPMS:
ftp://updates.redhat.com/8.0/en/os/SRPMS/mysql-3.23.56-1.80.src.rpm

i386:
ftp://updates.redhat.com/8.0/en/os/i386/mysql-3.23.56-1.80.i386.rpm
ftp://updates.redhat.com/8.0/en/os/i386/mysql-server-3.23.56-1.80.i386.rpm
ftp://updates.redhat.com/8.0/en/os/i386/mysql-devel-3.23.56-1.80.i386.rpm

Red Hat Linux 9:

SRPMS:
ftp://updates.redhat.com/9/en/os/SRPMS/mysql-3.23.56-1.9.src.rpm

i386:
ftp://updates.redhat.com/9/en/os/i386/mysql-3.23.56-1.9.i386.rpm
ftp://updates.redhat.com/9/en/os/i386/mysql-server-3.23.56-1.9.i386.rpm
ftp://updates.redhat.com/9/en/os/i386/mysql-devel-3.23.56-1.9.i386.rpm



7. Verification:

MD5 sum                          Package Name
- --------------------------------------------------------------------------
e7487478940f7fb152bd94dce219a99b 7.1/en/os/SRPMS/mysql-3.23.56-1.71.src.rpm
7f913c1ef0ad361fba8938270a93c474 7.1/en/os/i386/mysql-3.23.56-1.71.i386.rpm
31f5618bb189b0520083210bbc19cdfb 7.1/en/os/i386/mysql-devel-3.23.56-1.71.i386.rpm
9b1ba658cf7695f7fb626581ad3e700f 7.1/en/os/i386/mysql-server-3.23.56-1.71.i386.rpm
54f783324c224840fe7ea702fe628ec2 7.2/en/os/SRPMS/mysql-3.23.56-1.72.src.rpm
d1efdb7796e0444302ee3f426ca06c85 7.2/en/os/i386/mysql-3.23.56-1.72.i386.rpm
9b77319f6ecc7e5431efc99e7a291334 7.2/en/os/i386/mysql-devel-3.23.56-1.72.i386.rpm
ef3c7d3e1bfe3b835ee07b8d2eda7e21 7.2/en/os/i386/mysql-server-3.23.56-1.72.i386.rpm
fcdac19a133fcf7feb34e06877ed1242 7.2/en/os/ia64/mysql-3.23.56-1.72.ia64.rpm
6d5ed02bee3fe571275b5053cebc6c94 7.2/en/os/ia64/mysql-devel-3.23.56-1.72.ia64.rpm
19737a4c7f39bd37fbd73d0388d2c847 7.2/en/os/ia64/mysql-server-3.23.56-1.72.ia64.rpm
ab0e0b34299f786e032e0aa885c046d0 7.3/en/os/SRPMS/mysql-3.23.56-1.73.src.rpm
7024c33fbdd861d28733d549d29e5d12 7.3/en/os/i386/mysql-3.23.56-1.73.i386.rpm
2d9a1b8f6dcc9d336071ec5b889404a6 7.3/en/os/i386/mysql-devel-3.23.56-1.73.i386.rpm
fb5615fe718df6410a3382d892a56b4c 7.3/en/os/i386/mysql-server-3.23.56-1.73.i386.rpm
345bdf55ad90f9d00e771e464c4830c7 8.0/en/os/SRPMS/mysql-3.23.56-1.80.src.rpm
9b339a91222cdbb941c1cbf0d107f10a 8.0/en/os/i386/mysql-3.23.56-1.80.i386.rpm
618b4be6bf5744c9cb44c2f008bc2e76 8.0/en/os/i386/mysql-devel-3.23.56-1.80.i386.rpm
3e0f97fd1a0c1472869b5c390c775163 8.0/en/os/i386/mysql-server-3.23.56-1.80.i386.rpm
6f1f4e7f641f6a9e5bbad47d58af2110 9/en/os/SRPMS/mysql-3.23.56-1.9.src.rpm
af46b9de635c8d225fba841105287132 9/en/os/i386/mysql-3.23.56-1.9.i386.rpm
7b92035afc45f7f8b5a43cea39d7c56f 9/en/os/i386/mysql-devel-3.23.56-1.9.i386.rpm
f03daffeb2c83ff60501e72ebd50e587 9/en/os/i386/mysql-server-3.23.56-1.9.i386.rpm


These packages are GPG signed by Red Hat for security.  Our key is
available at http://www.redhat.com/solutions/security/news/publickey/

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>


8. References:

http://www.mysql.com/doc/en/News-3.23.55.html
http://www.mysql.com/doc/en/News-3.23.56.html
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0073
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0150

9. Contact:

The Red Hat security contact is <security@redhat.com>.  More contact
details at http://www.redhat.com/solutions/security/news/contact/

Copyright 2003 Red Hat, Inc.

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content.  The decision to use any or all of this information is
the responsibility of each user or organisation, and should be done so in
accordance with site policies and procedures.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security
Teams).

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business 
                hours which are GMT+10:00 (AEST).  On call after hours 
                for member emergencies only.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBPrfe+ih9+71yA2DNAQEvswP/foVCSRC93QdM14jnt7SAr1DIe+oqM95M
Nx71m2mTUajjzEbcpu4seirKQu6XfYCic41QIkgzWaKA2jvjIGo38tmk8UAcQDl5
LHR16nHB2r/AUENSHVB3I9RyjISYu7VQDFsV8DSSvoRX4a6xHWDHkuRXPfMQsAk1
n6mvv4JqK/M=
=jbf+
-----END PGP SIGNATURE-----