MySQL 5.1 before 5.1.51 and 5.5 before 5.5.6 allows remote authenticated users to cause a denial of service (infinite loop) via multiple invocations of a (1) prepared statement or (2) stored procedure that creates a query with nested JOIN statements.
https://exchange.xforce.ibmcloud.com/vulnerabilities/64839
https://bugzilla.redhat.com/show_bug.cgi?id=640861
http://www.vupen.com/english/advisories/2011/0170
http://www.ubuntu.com/usn/USN-1397-1
http://www.ubuntu.com/usn/USN-1017-1
http://www.securityfocus.com/bid/43676
http://www.redhat.com/support/errata/RHSA-2011-0164.html
http://www.redhat.com/support/errata/RHSA-2010-0825.html
http://www.mandriva.com/security/advisories?name=MDVSA-2010:223
http://www.mandriva.com/security/advisories?name=MDVSA-2010:222
http://secunia.com/advisories/42936
http://dev.mysql.com/doc/refman/5.5/en/news-5-5-6.html