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

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

                               ESB-2011.0054
                      Moderate: mysql security update
                              19 January 2011

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

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

Product:           mysql
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 6
                   Red Hat Enterprise Linux WS/Desktop 6
Impact/Access:     Denial of Service -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2010-3840 CVE-2010-3839 CVE-2010-3838
                   CVE-2010-3837 CVE-2010-3836 CVE-2010-3835
                   CVE-2010-3833 CVE-2010-3683 CVE-2010-3682
                   CVE-2010-3681 CVE-2010-3680 CVE-2010-3679
                   CVE-2010-3678 CVE-2010-3677 

Reference:         ASB-2010.0198.2
                   ESB-2010.1000

Original Bulletin: 
   https://rhn.redhat.com/errata/RHSA-2011-0164.html

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

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

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Moderate: mysql security update
Advisory ID:       RHSA-2011:0164-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2011-0164.html
Issue date:        2011-01-18
CVE Names:         CVE-2010-3677 CVE-2010-3678 CVE-2010-3679 
                   CVE-2010-3680 CVE-2010-3681 CVE-2010-3682 
                   CVE-2010-3683 CVE-2010-3833 CVE-2010-3835 
                   CVE-2010-3836 CVE-2010-3837 CVE-2010-3838 
                   CVE-2010-3839 CVE-2010-3840 
=====================================================================

1. Summary:

Updated mysql packages that fix multiple security issues are now available
for Red Hat Enterprise Linux 6.

The Red Hat Security Response Team has rated this update as having moderate
security impact. Common Vulnerability Scoring System (CVSS) base scores,
which give detailed severity ratings, are available for each vulnerability
from the CVE links in the References section.

2. Relevant releases/architectures:

Red Hat Enterprise Linux Desktop (v. 6) - i386, x86_64
Red Hat Enterprise Linux Desktop Optional (v. 6) - i386, x86_64
Red Hat Enterprise Linux HPC Node (v. 6) - x86_64
Red Hat Enterprise Linux HPC Node Optional (v. 6) - x86_64
Red Hat Enterprise Linux Server (v. 6) - i386, ppc64, s390x, x86_64
Red Hat Enterprise Linux Server Optional (v. 6) - i386, ppc64, s390x, x86_64
Red Hat Enterprise Linux Workstation (v. 6) - i386, x86_64
Red Hat Enterprise Linux Workstation Optional (v. 6) - i386, x86_64

3. Description:

MySQL is a multi-user, multi-threaded SQL database server. It consists of
the MySQL server daemon (mysqld) and many client programs and libraries.

The MySQL PolyFromWKB() function did not sanity check Well-Known Binary
(WKB) data, which could allow a remote, authenticated attacker to crash
mysqld. (CVE-2010-3840)

A flaw in the way MySQL processed certain JOIN queries could allow a
remote, authenticated attacker to cause excessive CPU use (up to 100%), if
a stored procedure contained JOIN queries, and that procedure was executed
twice in sequence. (CVE-2010-3839)

A flaw in the way MySQL processed queries that provide a mixture of numeric
and longblob data types to the LEAST or GREATEST function, could allow a
remote, authenticated attacker to crash mysqld. (CVE-2010-3838)

A flaw in the way MySQL processed PREPARE statements containing both
GROUP_CONCAT and the WITH ROLLUP modifier could allow a remote,
authenticated attacker to crash mysqld. (CVE-2010-3837)

MySQL did not properly pre-evaluate LIKE arguments in view prepare mode,
possibly allowing a remote, authenticated attacker to crash mysqld.
(CVE-2010-3836)

A flaw in the way MySQL processed statements that assign a value to a
user-defined variable and that also contain a logical value evaluation
could allow a remote, authenticated attacker to crash mysqld.
(CVE-2010-3835)

A flaw in the way MySQL evaluated the arguments of extreme-value functions,
such as LEAST and GREATEST, could allow a remote, authenticated attacker to
crash mysqld. (CVE-2010-3833)

A flaw in the way MySQL handled LOAD DATA INFILE requests allowed MySQL to
send OK packets even when there were errors. (CVE-2010-3683)

A flaw in the way MySQL processed EXPLAIN statements for some complex
SELECT queries could allow a remote, authenticated attacker to crash
mysqld. (CVE-2010-3682)

A flaw in the way MySQL processed certain alternating READ requests
provided by HANDLER statements could allow a remote, authenticated attacker
to crash mysqld. (CVE-2010-3681)

A flaw in the way MySQL processed CREATE TEMPORARY TABLE statements that
define NULL columns when using the InnoDB storage engine, could allow a
remote, authenticated attacker to crash mysqld. (CVE-2010-3680)

A flaw in the way MySQL processed certain values provided to the BINLOG
statement caused MySQL to read unassigned memory. A remote, authenticated
attacker could possibly use this flaw to crash mysqld. (CVE-2010-3679)

A flaw in the way MySQL processed SQL queries containing IN or CASE
statements, when a NULL argument was provided as one of the arguments to
the query, could allow a remote, authenticated attacker to crash mysqld.
(CVE-2010-3678)

A flaw in the way MySQL processed JOIN queries that attempt to retrieve
data from a unique SET column could allow a remote, authenticated attacker
to crash mysqld. (CVE-2010-3677)

Note: CVE-2010-3840, CVE-2010-3838, CVE-2010-3837, CVE-2010-3835,
CVE-2010-3833, CVE-2010-3682, CVE-2010-3681, CVE-2010-3680, CVE-2010-3678,
and CVE-2010-3677 only cause a temporary denial of service, as mysqld was
automatically restarted after each crash.

These updated packages upgrade MySQL to version 5.1.52. Refer to the MySQL
release notes for a full list of changes:

http://dev.mysql.com/doc/refman/5.1/en/news-5-1-52.html

All MySQL users should upgrade to these updated packages, which correct
these issues. After installing this update, the MySQL server daemon
(mysqld) will be restarted automatically.

4. Solution:

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

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/docs/DOC-11259

5. Bugs fixed (http://bugzilla.redhat.com/):

628040 - CVE-2010-3677 MySQL: Mysqld DoS (crash) by processing joins involving a table with a unique SET column (MySQL BZ#54575)
628062 - CVE-2010-3679 MySQL: Use of unassigned memory (valgrind errors / crash) by providing certain values to BINLOG statement (MySQL BZ#54393)
628172 - CVE-2010-3678  MySQL: mysqld DoS (crash) by processing IN / CASE statements with NULL arguments (MySQL bug #54477)
628192 - CVE-2010-3680 MySQL: mysqld DoS (assertion failure) by using temporary InnoDB engine tables with nullable columns (MySQL bug #54044)
628328 - CVE-2010-3682 MySQL: mysqld DoS (crash) by processing EXPLAIN statements for complex SQL queries (MySQL bug #52711)
628680 - CVE-2010-3681 MySQL: mysqld DoS (assertion failure) by alternate reads from two indexes on a table using the HANDLER interface (MySQL bug #54007)
628698 - CVE-2010-3683 MySQL: mysqld DoS (assertion failure) while reading the file back into a table (MySQL bug #52512)
640751 - CVE-2010-3833 MySQL: CREATE TABLE ... SELECT causes crash when KILL_BAD_DATA is returned (MySQL Bug#55826)
640819 - CVE-2010-3835 MySQL: crash with user variables, assignments, joins... (MySQL Bug #55564)
640845 - CVE-2010-3836 MySQL: pre-evaluating LIKE arguments in view prepare mode causes crash (MySQL Bug#54568)
640856 - CVE-2010-3837 MySQL: crash when group_concat and "with rollup" in prepared statements (MySQL Bug#54476)
640858 - CVE-2010-3838 MySQL: crash with LONGBLOB and union or update with subquery (MySQL Bug#54461)
640861 - CVE-2010-3839 MySQL: server hangs during JOIN query in stored procedures called twice in a row (MySQL Bug#53544)
640865 - CVE-2010-3840 MySQL: crash when loading data into geometry function PolyFromWKB() (MySQL Bug#51875)

6. Package List:

Red Hat Enterprise Linux Desktop (v. 6):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Client/en/os/SRPMS/mysql-5.1.52-1.el6_0.1.src.rpm

i386:
mysql-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-libs-5.1.52-1.el6_0.1.i686.rpm
mysql-server-5.1.52-1.el6_0.1.i686.rpm

x86_64:
mysql-5.1.52-1.el6_0.1.x86_64.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.x86_64.rpm
mysql-libs-5.1.52-1.el6_0.1.i686.rpm
mysql-libs-5.1.52-1.el6_0.1.x86_64.rpm
mysql-server-5.1.52-1.el6_0.1.x86_64.rpm

Red Hat Enterprise Linux Desktop Optional (v. 6):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Client/en/os/SRPMS/mysql-5.1.52-1.el6_0.1.src.rpm

i386:
mysql-bench-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-test-5.1.52-1.el6_0.1.i686.rpm

x86_64:
mysql-bench-5.1.52-1.el6_0.1.x86_64.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.x86_64.rpm
mysql-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-devel-5.1.52-1.el6_0.1.x86_64.rpm
mysql-embedded-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-5.1.52-1.el6_0.1.x86_64.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.x86_64.rpm
mysql-test-5.1.52-1.el6_0.1.x86_64.rpm

Red Hat Enterprise Linux HPC Node (v. 6):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6ComputeNode/en/os/SRPMS/mysql-5.1.52-1.el6_0.1.src.rpm

x86_64:
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.x86_64.rpm
mysql-libs-5.1.52-1.el6_0.1.i686.rpm
mysql-libs-5.1.52-1.el6_0.1.x86_64.rpm

Red Hat Enterprise Linux HPC Node Optional (v. 6):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6ComputeNode/en/os/SRPMS/mysql-5.1.52-1.el6_0.1.src.rpm

x86_64:
mysql-5.1.52-1.el6_0.1.x86_64.rpm
mysql-bench-5.1.52-1.el6_0.1.x86_64.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.x86_64.rpm
mysql-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-devel-5.1.52-1.el6_0.1.x86_64.rpm
mysql-embedded-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-5.1.52-1.el6_0.1.x86_64.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.x86_64.rpm
mysql-server-5.1.52-1.el6_0.1.x86_64.rpm
mysql-test-5.1.52-1.el6_0.1.x86_64.rpm

Red Hat Enterprise Linux Server (v. 6):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/mysql-5.1.52-1.el6_0.1.src.rpm

i386:
mysql-5.1.52-1.el6_0.1.i686.rpm
mysql-bench-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-libs-5.1.52-1.el6_0.1.i686.rpm
mysql-server-5.1.52-1.el6_0.1.i686.rpm
mysql-test-5.1.52-1.el6_0.1.i686.rpm

ppc64:
mysql-5.1.52-1.el6_0.1.ppc64.rpm
mysql-bench-5.1.52-1.el6_0.1.ppc64.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.ppc.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.ppc64.rpm
mysql-devel-5.1.52-1.el6_0.1.ppc.rpm
mysql-devel-5.1.52-1.el6_0.1.ppc64.rpm
mysql-libs-5.1.52-1.el6_0.1.ppc.rpm
mysql-libs-5.1.52-1.el6_0.1.ppc64.rpm
mysql-server-5.1.52-1.el6_0.1.ppc64.rpm
mysql-test-5.1.52-1.el6_0.1.ppc64.rpm

s390x:
mysql-5.1.52-1.el6_0.1.s390x.rpm
mysql-bench-5.1.52-1.el6_0.1.s390x.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.s390.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.s390x.rpm
mysql-devel-5.1.52-1.el6_0.1.s390.rpm
mysql-devel-5.1.52-1.el6_0.1.s390x.rpm
mysql-libs-5.1.52-1.el6_0.1.s390.rpm
mysql-libs-5.1.52-1.el6_0.1.s390x.rpm
mysql-server-5.1.52-1.el6_0.1.s390x.rpm
mysql-test-5.1.52-1.el6_0.1.s390x.rpm

x86_64:
mysql-5.1.52-1.el6_0.1.x86_64.rpm
mysql-bench-5.1.52-1.el6_0.1.x86_64.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.x86_64.rpm
mysql-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-devel-5.1.52-1.el6_0.1.x86_64.rpm
mysql-libs-5.1.52-1.el6_0.1.i686.rpm
mysql-libs-5.1.52-1.el6_0.1.x86_64.rpm
mysql-server-5.1.52-1.el6_0.1.x86_64.rpm
mysql-test-5.1.52-1.el6_0.1.x86_64.rpm

Red Hat Enterprise Linux Server Optional (v. 6):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/mysql-5.1.52-1.el6_0.1.src.rpm

i386:
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.i686.rpm

ppc64:
mysql-debuginfo-5.1.52-1.el6_0.1.ppc.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.ppc64.rpm
mysql-embedded-5.1.52-1.el6_0.1.ppc.rpm
mysql-embedded-5.1.52-1.el6_0.1.ppc64.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.ppc.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.ppc64.rpm

s390x:
mysql-debuginfo-5.1.52-1.el6_0.1.s390.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.s390x.rpm
mysql-embedded-5.1.52-1.el6_0.1.s390.rpm
mysql-embedded-5.1.52-1.el6_0.1.s390x.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.s390.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.s390x.rpm

x86_64:
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.x86_64.rpm
mysql-embedded-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-5.1.52-1.el6_0.1.x86_64.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.x86_64.rpm

Red Hat Enterprise Linux Workstation (v. 6):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/mysql-5.1.52-1.el6_0.1.src.rpm

i386:
mysql-5.1.52-1.el6_0.1.i686.rpm
mysql-bench-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-libs-5.1.52-1.el6_0.1.i686.rpm
mysql-server-5.1.52-1.el6_0.1.i686.rpm
mysql-test-5.1.52-1.el6_0.1.i686.rpm

x86_64:
mysql-5.1.52-1.el6_0.1.x86_64.rpm
mysql-bench-5.1.52-1.el6_0.1.x86_64.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.x86_64.rpm
mysql-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-devel-5.1.52-1.el6_0.1.x86_64.rpm
mysql-libs-5.1.52-1.el6_0.1.i686.rpm
mysql-libs-5.1.52-1.el6_0.1.x86_64.rpm
mysql-server-5.1.52-1.el6_0.1.x86_64.rpm
mysql-test-5.1.52-1.el6_0.1.x86_64.rpm

Red Hat Enterprise Linux Workstation Optional (v. 6):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/mysql-5.1.52-1.el6_0.1.src.rpm

i386:
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.i686.rpm

x86_64:
mysql-debuginfo-5.1.52-1.el6_0.1.i686.rpm
mysql-debuginfo-5.1.52-1.el6_0.1.x86_64.rpm
mysql-embedded-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-5.1.52-1.el6_0.1.x86_64.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.i686.rpm
mysql-embedded-devel-5.1.52-1.el6_0.1.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and 
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/#package

7. References:

https://www.redhat.com/security/data/cve/CVE-2010-3677.html
https://www.redhat.com/security/data/cve/CVE-2010-3678.html
https://www.redhat.com/security/data/cve/CVE-2010-3679.html
https://www.redhat.com/security/data/cve/CVE-2010-3680.html
https://www.redhat.com/security/data/cve/CVE-2010-3681.html
https://www.redhat.com/security/data/cve/CVE-2010-3682.html
https://www.redhat.com/security/data/cve/CVE-2010-3683.html
https://www.redhat.com/security/data/cve/CVE-2010-3833.html
https://www.redhat.com/security/data/cve/CVE-2010-3835.html
https://www.redhat.com/security/data/cve/CVE-2010-3836.html
https://www.redhat.com/security/data/cve/CVE-2010-3837.html
https://www.redhat.com/security/data/cve/CVE-2010-3838.html
https://www.redhat.com/security/data/cve/CVE-2010-3839.html
https://www.redhat.com/security/data/cve/CVE-2010-3840.html
https://access.redhat.com/security/updates/classification/#moderate
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-52.html

8. Contact:

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

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

iD8DBQFNNeTGXlSAg2UNWIIRAtO6AKCaOVsBESqgXd2DThHKZfvn2N+QAACdGpcW
7wmKb21ORpkWLQHWLBEdcoY=
=+/5s
- -----END PGP SIGNATURE-----

- --------------------------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.

NOTE: Third Party Rights
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 follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

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

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

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-----
Comment: http://www.auscert.org.au/render.html?it=1967

iD8DBQFNNjK0/iFOrG6YcBERAgP2AJ4vcbeTu8wlSfPox8skp3hPelZbBgCffe4V
6H4NRlJU9Zvc0jeUQ0VqcW0=
=0pCu
-----END PGP SIGNATURE-----