<?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 and bug fix 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:0121</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2013-01-08T04:05:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2013-01-08T04:05:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2013-01-08T04:05:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1484</Engine>
      <Date>2013-01-08T04:56:01Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated mysql packages that fix one security issue and several bugs are now
available for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having low
security impact. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available from the CVE link 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.

It was found that the fix for the CVE-2009-4030 issue, a flaw in the way
MySQL checked the paths used as arguments for the DATA DIRECTORY and INDEX
DIRECTORY directives when the &quot;datadir&quot; option was configured with a
relative path, was incorrectly removed when the mysql packages in Red Hat
Enterprise Linux 5 were updated to version 5.0.95 via RHSA-2012:0127. An
authenticated attacker could use this flaw to bypass the restriction
preventing the use of subdirectories of the MySQL data directory being used
as DATA DIRECTORY and INDEX DIRECTORY paths. This update re-applies the fix
for CVE-2009-4030. (CVE-2012-4452)

Note: If the use of the DATA DIRECTORY and INDEX DIRECTORY directives were
disabled as described in RHSA-2010:0109 (by adding &quot;symbolic-links=0&quot; to
the &quot;[mysqld]&quot; section of the &quot;my.cnf&quot; configuration file), users were not
vulnerable to this issue.

This issue was discovered by Karel Volný of the Red Hat Quality Engineering
team.

This update also fixes the following bugs:

* Prior to this update, the log file path in the logrotate script did not
behave as expected. As a consequence, the logrotate function failed to
rotate the &quot;/var/log/mysqld.log&quot; file. This update modifies the logrotate
script to allow rotating the mysqld.log file. (BZ#647223)

* Prior to this update, the mysqld daemon could fail when using the EXPLAIN
flag in prepared statement mode. This update modifies the underlying code
to handle the EXPLAIN flag as expected. (BZ#654000)

* Prior to this update, the mysqld init script could wrongly report that
mysql server startup failed when the server was actually started. This
update modifies the init script to report the status of the mysqld server
as expected. (BZ#703476)

* Prior to this update, the &quot;--enable-profiling&quot; option was by default
disabled. This update enables the profiling feature. (BZ#806365)

All MySQL users are advised to upgrade to these updated packages, which
contain backported patches to resolve 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/">Low</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2013-0121.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2013-0121.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#low</URL>
       <Description>https://access.redhat.com/security/updates/classification/#low</Description>
    </Reference>
    <Reference>
       <URL>https://rhn.redhat.com/errata/RHSA-2012-0127.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2012-0127.html</Description>
    </Reference>
    <Reference>
       <URL>https://rhn.redhat.com/errata/RHSA-2010-0109.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2010-0109.html</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=526850</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=526850</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=528512</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=528512</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=543730</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=543730</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=548685</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=548685</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=654000</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=654000</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=675906</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=675906</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=806365</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=806365</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">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">RHEL Desktop Workstation (v. 5 client)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux (v. 5 server)">
        <FullProductName ProductID="5Server">Red Hat Enterprise Linux (v. 5 server)</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="mysql-5.0.95-3.el5">
      <FullProductName ProductID="mysql-5.0.95-3.el5">mysql-5.0.95-3.el5.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="mysql-5.0.95-3.el5" RelationType="Default Component Of" RelatesToProductReference="5Client">
      <FullProductName ProductID="5Client:mysql-5.0.95-3.el5">mysql-5.0.95-3.el5 as a component of Red Hat Enterprise Linux Desktop (v. 5 client)</FullProductName>
    </Relationship>
    <Relationship ProductReference="mysql-5.0.95-3.el5" RelationType="Default Component Of" RelatesToProductReference="5Client-Workstation">
      <FullProductName ProductID="5Client-Workstation:mysql-5.0.95-3.el5">mysql-5.0.95-3.el5 as a component of RHEL Desktop Workstation (v. 5 client)</FullProductName>
    </Relationship>
    <Relationship ProductReference="mysql-5.0.95-3.el5" RelationType="Default Component Of" RelatesToProductReference="5Server">
      <FullProductName ProductID="5Server:mysql-5.0.95-3.el5">mysql-5.0.95-3.el5 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">It was found that the fix for the CVE-2009-4030 issue, a flaw in the way MySQL checked the paths used as arguments for the DATA DIRECTORY and INDEX DIRECTORY directives when the &quot;datadir&quot; option was configured with a relative path, was incorrectly removed when the mysql packages in Red Hat Enterprise Linux 5 were updated to version 5.0.95 via RHSA-2012:0127. An authenticated attacker could use this flaw to bypass the restriction preventing the use of subdirectories of the MySQL data directory being used as DATA DIRECTORY and INDEX DIRECTORY paths. This update re-applies the fix for CVE-2009-4030. </Note></Notes>
    <DiscoveryDate>2012-09-06T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-09-27T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-4452</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Client-Workstation:mysql-5.0.95-3.el5</ProductID>
      <ProductID>5Client:mysql-5.0.95-3.el5</ProductID>
      <ProductID>5Server:mysql-5.0.95-3.el5</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Low</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>2.4</BaseScore>
      <Vector>AV:L/AC:H/Au:S/C:N/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-0121.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-4452.html</URL>
        <Description>CVE-2012-4452</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=860808</URL>
        <Description>bz#860808: CVE-2012-4452 mysql: regression of CVE-2009-4030</Description>
      </Reference>
    </References>
    <Acknowledgments><Acknowledgment><Description>This issue was discovered by Karel Volný of the Red Hat Quality Engineering team.</Description></Acknowledgment></Acknowledgments>
  </Vulnerability>
</cvrfdoc>
