CVE-2026-137977: Nmap before 7.992 Use-After-Free via DNS Resolver handle_write

Published Nov 27, 2026
·
Updated

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

1 affected component
Nmap Nmap<7.992

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.992

Event History

Nov 27, 2026
CVE Published
via MITRE·03:38 PM
Data Sourced
via MITRE·03:38 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Event
via NVD·04:18 PM

Frequently Asked Questions

1

Which deployments are exposed?

Nmap versions before 7.992 are affected when performing DNS resolution. Exposure is most relevant when scans use DNS servers that an attacker controls or can interfere with on the network path.

2

What does an attacker need to exploit this issue?

The attacker must be able to provide timed DNS responses and forge ICMP port-unreachable messages. No Nmap privileges are required, but the CVSS vector indicates user interaction is required.

3

What is the impact of successful exploitation?

An attacker may crash scans, disclose process memory, or potentially hijack execution by causing freed DNS request objects to be dereferenced after writes complete.

4

How can I remediate the vulnerability?

Upgrade Nmap to version 7.992 or later. The issue is addressed by the referenced upstream commits.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203