Off-by-one error in the packet_read_query_section function in packet.c in nsd 3.2.1, and process_query_section in query.c in nsd 2.3.7, allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via unspecified vectors that trigger a buffer overflow.
http://www.openwall.com/lists/oss-security/2009/05/19/1
http://www.nlnetlabs.nl/publications/NSD_vulnerability_announcement.html