Bug 628192 (CVE-2010-3680)

Summary: CVE-2010-3680 MySQL: mysqld DoS (assertion failure) by using temporary InnoDB engine tables with nullable columns (MySQL bug #54044)
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: byte, jrusnack, kvolny, tao, tgl, vdanen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 15:11:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 636780, 645642, 645643, 652553, 652554, 833943    
Bug Blocks:    

Description Jan Lieskovsky 2010-08-28 14:13:25 UTC
A denial of service was found in the way MySQL processed creation of
temporary tables, when the InnoDB storage engine was used. A remote
authenticated MySQL user could use this flaw to cause mysqld daemon
abort (assertion failure).

References:
  [1] http://secunia.com/advisories/41048/
  [2] http://dev.mysql.com/doc/refman/5.1/en/news-5-1-49.html

Upstream bug report:
  [3] http://bugs.mysql.com/bug.php?id=54044

Note:
This issue only causes a temporary denial of service, as the mysql daemon
shipped with Red Hat Enterprise Linux 5 will be automatically restarted
after the abort.

Comment 1 Jan Lieskovsky 2010-08-28 14:16:09 UTC
Public reproducer (from [3]):

SET storage_engine=innodb;
CREATE TEMPORARY TABLE mk_upgrade AS SELECT  IF(NULL  IS NOT NULL, NULL
, NULL) ; drop table mk_upgrade;

Comment 4 Jan Lieskovsky 2010-08-28 14:34:36 UTC
This issue did NOT affect the versions of the mysql package, as shipped
with Red Hat Enterprise Linux 3 and 4.

This issue affects the version of the mysql package, as shipped with
Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this issue as having
low security impact, as exploitation of this issue would mean only
a temporary denial of service, since the mysql daemon shipped with
Red Hat Enterprise Linux 5 will be automatically restarted after
the abort.

A future update may address this flaw in Red Hat Enterprise Linux 5.

--

This issue affects the versions of the mysql package, as shipped with
Fedora release of 12 and 13.

Comment 6 Jan Lieskovsky 2010-08-31 12:54:52 UTC
CVE Request: http://www.openwall.com/lists/oss-security/2010/08/30/8

Comment 7 Jan Lieskovsky 2010-09-23 09:19:56 UTC
Created mysql tracking bugs for this issue

Affects: fedora-all [bug 636780]

Comment 8 Jan Lieskovsky 2010-09-29 08:42:53 UTC
The CVE identifier of CVE-2010-3680 has been assigned to this issue.

Comment 11 errata-xmlrpc 2010-11-03 20:21:59 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0825 https://rhn.redhat.com/errata/RHSA-2010-0825.html

Comment 12 Vincent Danen 2010-11-03 20:48:36 UTC
Statement:

This issue did not affect the versions of mysql as shipped with Red Hat Enterprise Linux 3 and 4.

Comment 14 errata-xmlrpc 2011-01-18 18:43:15 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

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