CVE-2026-137978 is a high-severity (CVSS 7.5) Use After Free vulnerability in Nmap Nmap. A fix is available — see the affected versions and patch details below.
Nmap before 7.992 contains a use-after-free vulnerability in DNS::ResolverImpl::process_request in libnetutil/massdns.cc that frees still-referenced requests when rescheduling after…
Description
Nmap before 7.992 contains a use-after-free vulnerability in DNS::ResolverImpl::process_request in libnetutil/massdns.cc that frees still-referenced requests when rescheduling after DNS server disconnects. Attackers answering for at least two configured DNS servers can force a disconnect and send a precisely timed response to crash the scan, possibly enabling code execution.
Affected Products
NmapNmapDetection & mitigation playbook
Vendor / applianceDetect
Inventory every Nmap Nmap deployment and check each version against the affected-products list above.
Fix
Apply the Nmap Nmap security patch or hotfix for CVE-2026-137978 on the affected version, following the vendor advisory for your exact build.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
Frequently Asked Questions
Is CVE-2026-137978 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.