Nmap before 7.992 contains a use-after-free vulnerability in DNS::ResolverImpl::handle write in libnetutil/massdns.cc that dereferences freed request objects after writes complete. Attackers controlling or on-path to a DNS server can send timed DNS responses with forged ICMP port-unreachable messages to crash scans, disclose memory, or hijack execution.