Bug 640856 (CVE-2010-3837)

Summary: CVE-2010-3837 MySQL: crash when group_concat and "with rollup" in prepared statements (MySQL Bug#54476)
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: byte, jlieskov, kvolny, tgl
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20100614,reported=20100930,source=debian,cvss2=4.0/AV:N/AC:L/Au:S/C:N/I:N/A:P,rhel-3/mysql=notaffected,rhel-4/mysql=affected,rhel-5/mysql=affected,rhel-6/mysql=affected,fedora-12/mysql=affected,fedora-13/mysql=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 15:20:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 645642, 645643, 645647, 652553, 652554, 833943    
Bug Blocks:    
Attachments:
Description Flags
upstream patch none

Description Vincent Danen 2010-10-06 22:10:04 UTC
A flaw in MySQL versions prior to 5.1.51 [1] was reported [2] that could allow an authenticated user to kill connections to MySQL by using GROUP_CONCAT() together with 'WITH ROLLUP'.

[1] http://dev.mysql.com/doc/refman/5.1/en/news-5-1-51.html
[2] http://bugs.mysql.com/bug.php?id=54476

This is noted as having been fixed in MySQL 5.1.51, but it does not cause a crash on MySQL 5.0.50 in Fedora 13.  It also causes a crash on Red Hat Enterprise Linux 5 (5.0.77) but not Red Hat Enterprise Linux 4 (4.1.22).  GROUP_CONCAT() support looks to have been added in MySQL 4.1, so Red Hat Enterprise Linux 3 is not affected.

A patch for this flaw is included in the upstream report.

Comment 1 Vincent Danen 2010-10-12 20:16:51 UTC
This issue has been assigned the name CVE-2010-3837:

http://article.gmane.org/gmane.comp.security.oss.general/3627

Comment 3 Huzaifa S. Sidhpurwala 2010-10-14 08:39:10 UTC
Created attachment 453404 [details]
upstream patch

Comment 5 Huzaifa S. Sidhpurwala 2010-10-19 02:48:23 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 mysql package, as shipped with Red Hat
Enterprise Linux 5 and 6.

---

This issue affects the version of the mysql package, as shipped with
Fedora 12.

This issue did NOT affect the version of the mysql package, as shipped with Fedora 13.

Comment 8 Huzaifa S. Sidhpurwala 2010-10-22 06:35:53 UTC
Created mysql tracking bugs for this issue

Affects: fedora-12 [bug 645647]

Comment 10 errata-xmlrpc 2010-11-03 20:21:45 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 errata-xmlrpc 2011-01-18 18:42:51 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