CVE-2026-137978
Nmap before 7.992 contains a use-after-free vulnerability in DNS::ResolverImpl::process_request in libnetutil/massdns.cc that frees still-referenced requests w…
Impact
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.
An attacker can exploit this over the network, without logging in, but a user has to be involved, for example by viewing content. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Nmap | Nmap | before 7.992 |
| Open source | Nmap | before 7.992 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/nmap/nmap/commit/ed8abf52f4cd2b52185b955cdd4765fa8b6f75df
- https://github.com/nmap/nmap/commit/cd74c02e2f53d57ba19a9a63398ea7d3bc7cb942
- https://github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/libnetutil/massdns.cc#L1115
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOG
- https://nmap.org/changelog.html
- https://github.com/nmap/nmap
- https://www.vulncheck.com/advisories/nmap-before-7.992-use-after-free-via-parallel-dns-resolver-process-request
- https://github.com/advisories/GHSA-5wmc-vfq3-gfv5
- https://nvd.nist.gov/vuln/detail/CVE-2026-137978