The compress_add_dlabel_points function in dns/Compress.c in MaraDNS 1.4.03, 1.4.05, and probably other versions allows remote attackers to cause a denial of service (segmentation fault) and possibly execute arbitrary code via a long DNS hostname with a large number of labels, which triggers a heap-based buffer overflow.
https://exchange.xforce.ibmcloud.com/vulnerabilities/64885
http://www.vupen.com/english/advisories/2011/0699
http://www.securityfocus.com/bid/45966
http://www.openwall.com/lists/oss-security/2011/01/24/6
http://www.openwall.com/lists/oss-security/2011/01/24/1
http://www.debian.org/security/2011/dsa-2196
http://secunia.com/advisories/43107