AZL-116360: CVE-2026-137977 affecting package nmap 7.95-6
Nmap before 7.992 contains a use-after-free vulnerability in DNS::ResolverImpl::handlewrite 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.992
Event History
Frequently Asked Questions
Which environments should be prioritized for remediation?
Prioritize systems running the affected nmap package that perform scans using DNS resolution where a DNS server may be attacker-controlled or where an attacker could observe or alter DNS traffic on the path.
What does an attacker need to exploit this issue?
The attacker needs control of, or an on-path position to, a DNS server and must send timed DNS responses together with forged ICMP port-unreachable messages.
What version should be used to remediate the vulnerability?
The vulnerability affects Nmap versions before 7.992. Upgrade to Nmap 7.992 or later when an updated package is available.