CVE-2026-137977
Nmap before 7.992 Use-After-Free via DNS Resolver handle_write
High · 7.7Fix available
- CVSS
- 7.7
- EPSS
- —
- Published
- 2026-11-27
- Age
- 24h old
- Modified
- 2026-11-27
- Product
- Nmap Nmap
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Description
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.
Fixed in
7.992
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | Nmap | >=0, <7.992 | 7.992 |
Sources
References
- https://github.com/nmap/nmap/commit/37a95cb34ff4bdbb8527f58ab66bd1017fb7de5d patch
- https://github.com/nmap/nmap/commit/cd74c02e2f53d57ba19a9a63398ea7d3bc7cb942 patch
- https://github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/libnetutil/massdns.cc#L924 technical-description
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOG release-notes
- https://nmap.org/changelog.html release-notes
- https://github.com/nmap/nmap product
- https://www.vulncheck.com/advisories/nmap-before-7.992-use-after-free-via-dns-resolver-handle-write third-party-advisory