Buffer overflow in the mysql_real_connect function in MySQL 4.x before 4.0.21, and 3.x before 3.23.49, allows remote DNS servers to cause a denial of service and possibly execute arbitrary code via a DNS response with a large address length (h_length).
https://exchange.xforce.ibmcloud.com/vulnerabilities/17047
http://www.trustix.org/errata/2004/0054/
http://www.securityfocus.com/bid/10981
http://www.redhat.com/support/errata/RHSA-2004-611.html
http://www.redhat.com/support/errata/RHSA-2004-597.html
http://www.gentoo.org/security/en/glsa/glsa-200410-22.xml
http://www.debian.org/security/2004/dsa-562
http://secunia.com/advisories/12305/