The in_decimal::set function in item_cmpfunc.cc in MySQL before 5.0.40, and 5.1 before 5.1.18-beta, allows context-dependent attackers to cause a denial of service (crash) via a crafted IF clause that results in a divide-by-zero error and a NULL pointer dereference.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9930
https://exchange.xforce.ibmcloud.com/vulnerabilities/34232
http://www.vupen.com/english/advisories/2007/1731
http://www.securityfocus.com/bid/23911
http://www.redhat.com/support/errata/RHSA-2008-0364.html
http://www.mandriva.com/security/advisories?name=MDKSA-2007:139
http://www.exploit-db.com/exploits/30020
http://www.debian.org/security/2007/dsa-1413
http://security.gentoo.org/glsa/glsa-200705-11.xml
http://secunia.com/advisories/30351
http://secunia.com/advisories/28838
http://secunia.com/advisories/27823
http://secunia.com/advisories/27155
http://secunia.com/advisories/25946
http://secunia.com/advisories/25389
http://secunia.com/advisories/25255
http://secunia.com/advisories/25196
http://secunia.com/advisories/25188
http://packetstormsecurity.com/files/124295/MySQL-5.0.x-Denial-Of-Service.html
http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html