<?xml version="1.0" encoding="utf-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Red Hat Security Advisory: mysql security update</DocumentTitle>
  <DocumentType>Security Advisory</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>secalert@redhat.com</ContactDetails>
    <IssuingAuthority>Red Hat Security Response Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification><ID>RHSA-2013:0180</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2013-01-22T18:15:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2013-01-22T18:15:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2013-01-22T18:15:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1484</Engine>
      <Date>2013-01-22T18:37:02Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated mysql packages that fix two security issues are now available for
Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having
important 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.    </Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">
MySQL is a multi-user, multi-threaded SQL database server. It consists of
the MySQL server daemon (mysqld) and many client programs and libraries.

A stack-based buffer overflow flaw was found in the user permission
checking code in MySQL. An authenticated database user could use this flaw
to crash the mysqld daemon or, potentially, execute arbitrary code with the
privileges of the user running the mysqld daemon. (CVE-2012-5611)

A flaw was found in the way MySQL calculated the key length when creating
a sort order index for certain queries. An authenticated database user
could use this flaw to crash the mysqld daemon. (CVE-2012-2749)

This update also adds a patch for a potential flaw in the MySQL password
checking function, which could allow an attacker to log into any MySQL
account without knowing the correct password. This problem (CVE-2012-2122)
only affected MySQL packages that use a certain compiler and C library
optimization. It did not affect the mysql packages in Red Hat Enterprise
Linux 5. The patch is being added as a preventive measure to ensure this
problem cannot get exposed in future revisions of the mysql packages.
(BZ#814605)

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.    </Note>
    <Note Title="Terms of Use" Ordinal="3" Type="Legal Disclaimer" xml:lang="en">Please see https://www.redhat.com/footer/terms-of-use.html</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright © 2013 Red Hat, Inc. All rights reserved.</DocumentDistribution>
  <AggregateSeverity Namespace="https://access.redhat.com/security/updates/classification/">Important</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2013-0180.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2013-0180.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#important</URL>
       <Description>https://access.redhat.com/security/updates/classification/#important</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="Red Hat Enterprise Linux">
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux Desktop (v. 5 client)">
        <FullProductName ProductID="5Client-5.9.Z">Red Hat Enterprise Linux Desktop (v. 5 client)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="RHEL Desktop Workstation (v. 5 client)">
        <FullProductName ProductID="5Client-Workstation-5.9.Z">RHEL Desktop Workstation (v. 5 client)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux (v. 5 server)">
        <FullProductName ProductID="5Server-5.9.Z">Red Hat Enterprise Linux (v. 5 server)</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="mysql-5.0.95-5.el5_9">
      <FullProductName ProductID="mysql-5.0.95-5.el5_9">mysql-5.0.95-5.el5_9.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="mysql-5.0.95-5.el5_9" RelationType="Default Component Of" RelatesToProductReference="5Client-5.9.Z">
      <FullProductName ProductID="5Client-5.9.Z:mysql-5.0.95-5.el5_9">mysql-5.0.95-5.el5_9 as a component of Red Hat Enterprise Linux Desktop (v. 5 client)</FullProductName>
    </Relationship>
    <Relationship ProductReference="mysql-5.0.95-5.el5_9" RelationType="Default Component Of" RelatesToProductReference="5Client-Workstation-5.9.Z">
      <FullProductName ProductID="5Client-Workstation-5.9.Z:mysql-5.0.95-5.el5_9">mysql-5.0.95-5.el5_9 as a component of RHEL Desktop Workstation (v. 5 client)</FullProductName>
    </Relationship>
    <Relationship ProductReference="mysql-5.0.95-5.el5_9" RelationType="Default Component Of" RelatesToProductReference="5Server-5.9.Z">
      <FullProductName ProductID="5Server-5.9.Z:mysql-5.0.95-5.el5_9">mysql-5.0.95-5.el5_9 as a component of Red Hat Enterprise Linux (v. 5 server)</FullProductName>
    </Relationship>
  </ProductTree>

  <Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in the way MySQL calculated the key length when creating a sort order index for certain queries. An authenticated database user could use this flaw to crash the mysqld daemon. </Note></Notes>
    <DiscoveryDate>2012-05-11T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-04-04T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-2749</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Client-5.9.Z:mysql-5.0.95-5.el5_9</ProductID>
      <ProductID>5Client-Workstation-5.9.Z:mysql-5.0.95-5.el5_9</ProductID>
      <ProductID>5Server-5.9.Z:mysql-5.0.95-5.el5_9</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Low</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>4.0</BaseScore>
      <Vector>AV:N/AC:L/Au:S/C:N/I:N/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
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
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2013-0180.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-2749.html</URL>
        <Description>CVE-2012-2749</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=833737</URL>
        <Description>bz#833737: CVE-2012-2749 mysql: crash caused by wrong calculation of key length for sort order index</Description>
      </Reference>
    </References>
  </Vulnerability>

  <Vulnerability Ordinal="2" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A stack-based buffer overflow flaw was found in the user permission checking code in MySQL. An authenticated database user could use this flaw to crash the mysqld daemon or, potentially, execute arbitrary code with the privileges of the user running the mysqld daemon. </Note></Notes>
    <DiscoveryDate>2012-11-26T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-11-29T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-5611</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Client-5.9.Z:mysql-5.0.95-5.el5_9</ProductID>
      <ProductID>5Client-Workstation-5.9.Z:mysql-5.0.95-5.el5_9</ProductID>
      <ProductID>5Server-5.9.Z:mysql-5.0.95-5.el5_9</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Important</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>6.5</BaseScore>
      <Vector>AV:N/AC:L/Au:S/C:P/I:P/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
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
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2013-0180.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-5611.html</URL>
        <Description>CVE-2012-5611</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=881064</URL>
        <Description>bz#881064: CVE-2012-5611 mysql: acl_get() stack-based buffer overflow</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
