Bug 833737 - (CVE-2012-2749) CVE-2012-2749 mysql: crash caused by wrong calculation of key length for sort order index
CVE-2012-2749 mysql: crash caused by wrong calculation of key length for sort...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20120404,reported=2...
: Security
Depends On: 871813 871814 892679 892680
Blocks: mysql-cpu-2012-07 833743
  Show dependency treegraph
 
Reported: 2012-06-20 04:27 EDT by Tomas Hoger
Modified: 2015-11-24 10:18 EST (History)
4 users (show)

See Also:
Fixed In Version: mysql 5.1.63, mysql 5.5.24
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-01-23 01:32:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Novell 767848 None None None 2012-06-20 04:29:41 EDT

  None (edit)
Description Tomas Hoger 2012-06-20 04:27:37 EDT
MySQL versions 5.1.63 and 5.5.24 fix the following bug noted in the 5.1.63 release notes:

 * Security Fix: Bug #59387 was fixed.

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

This bug is also fixed in 5.5.24, but not mentioned in the release notes or changelog.

Related upstream change is:

http://bazaar.launchpad.net/~mysql/mysql-server/5.1/revision/3560.10.16
Bug#11766300 59387: FAILING ASSERTION: CURSOR->POS_STATE == 1997660512 (BTR_PCUR_IS_POSITIONE
Bug#13639204 64111: CRASH ON SELECT SUBQUERY WITH NON UNIQUE INDEX

This issue allows non-admin database user with full SQL access to crash mysqld.  Upstream commit explains issue details:

  The crash happened due to wrong calculation of key length during
  creation of reference for sort order index. The problem is that
  keyuse->used_tables can have OUTER_REF_TABLE_BIT enabled but
  used_tables parameter(create_ref_for_key() func) does not have it.
  So key parts which have OUTER_REF_TABLE_BIT are ommited and it could
  lead to incorrect key length calculation(zero key length).
Comment 1 Tomas Hoger 2012-06-20 04:30:46 EDT
Related upstream bugs remain non-public:
  http://bugs.mysql.com/bug.php?id=59387
  http://bugs.mysql.com/bug.php?id=64111
Comment 3 errata-xmlrpc 2012-11-14 15:53:06 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2012:1462 https://rhn.redhat.com/errata/RHSA-2012-1462.html
Comment 7 errata-xmlrpc 2013-01-22 13:35:53 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2013:0180 https://rhn.redhat.com/errata/RHSA-2013-0180.html

Note You need to log in before you can comment on or make changes to this bug.