CVE-2026-137977
Nmap before 7.992 Use-After-Free via DNS Resolver handle_write
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| Nmap Nmap |
≥ 0; < 7.992 (affected, custom)
Other versions: unaffected |
CNA: VulnCheck |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 7.7 high |
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 | CNA: VulnCheck |
| 3.1 / 7.5 high |
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H | CNA: VulnCheck |
| 4.0 / 7.7 high |
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
| 3.1 / 7.5 high |
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/nmap/nmap/commit/37a95cb34ff4bdbb8527f58ab66bd1017fb7de5dCNA: VulnCheck · patch
- https://github.com/nmap/nmap/commit/cd74c02e2f53d57ba19a9a63398ea7d3bc7cb942CNA: VulnCheck · patch
- https://github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/libnetutil/massdns.cc#L924CNA: VulnCheck · technical-description
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOGCNA: VulnCheck · release-notes
- https://nmap.org/changelog.htmlCNA: VulnCheck · release-notes
- https://github.com/nmap/nmapCNA: VulnCheck · product
- https://www.vulncheck.com/advisories/nmap-before-7.992-use-after-free-via-dns-resolver-handle-writeCNA: VulnCheck · third-party-advisory
- https://github.com/nmap/nmap[email protected]
- https://github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/libnetutil/massdns.cc#L924[email protected]
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOG[email protected]
- https://github.com/nmap/nmap/commit/37a95cb34ff4bdbb8527f58ab66bd1017fb7de5d[email protected]
- https://github.com/nmap/nmap/commit/cd74c02e2f53d57ba19a9a63398ea7d3bc7cb942[email protected]
- https://nmap.org/changelog.html[email protected]
- https://www.vulncheck.com/advisories/nmap-before-7.992-use-after-free-via-dns-resolver-handle-write[email protected]
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.