Bug 882600 (CVE-2012-5612)

Summary: CVE-2012-5612 mysql: MDL subsystem heap-based buffer overflow
Product: [Other] Security Response Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: hhorak, jlieskov, redhat, roomojee, tgl
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=important,public=20121201,reported=20121202,source=internet,cvss2=6.5/AV:N/AC:L/Au:S/C:P/I:P/A:P,rhel-5/mysql=notaffected,rhel-6/mysql=notaffected,fedora-all/mysql=notaffected,cwe=CWE-122[auto]
Fixed In Version: mysql 5.5.29 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-17 23:53:00 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 882596, 895568, 895572    

Description Huzaifa S. Sidhpurwala 2012-12-02 01:51:02 EST
A heap-based buffer overflow was found in Mysql. An authenticated database user could use this flaw to cause mysqld to crash or possibly execute arbitrary code with the privileges of the user running mysql.


This issue was assigned CVE-2012-5612
Comment 1 Huzaifa S. Sidhpurwala 2012-12-02 23:52:19 EST
External Reference:

Comment 3 Huzaifa S. Sidhpurwala 2012-12-04 05:02:22 EST
This issue only affect MySQL 5.5 and higher, since the vulnerable MDL subsystem was first implemented in MySQL 5.5:

Comment 5 Huzaifa S. Sidhpurwala 2012-12-04 05:14:12 EST
Based on comment #3, this flaw does not seem to affect the version of mysql shipped with Red Hat Enterprise Linux 5 and 6, since mariadb upstream suggests that this only affects 5.5 and above.
Comment 7 Jan Lieskovsky 2013-01-16 08:38:00 EST
Oracle January 2013 CPU record:
Comment 8 Huzaifa S. Sidhpurwala 2013-01-17 23:53:00 EST
Text of the Oracle flaw description:

Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server Parser). Supported versions that are affected are 5.5.28 and earlier. Easily exploitable vulnerability allows successful authenticated network attacks via multiple protocols. Successful attack of this vulnerability can result in unauthorized Operating System takeover including arbitrary code execution. 


Upstream notes this issue only affected MySQL versions 5.5.  Red Hat Enterprise Linux 5 and 6 include MySQL versions 5.0.x and 5.1.x respectively, which are not listed as affected.  Current Fedora versions are already updated to fixed upstream version.  Closing.
Comment 10 Tomas Hoger 2013-01-22 16:04:08 EST
The fix is also noted in 5.5.29 release notes:

  Very long table aliases in queries could cause the server to exit.
  (Bug #15948123)