Description
Nmap through 7.99 does not keep the IPv6 extension-header walk within the captured packet in ipv6_get_data_primitive (libnetutil/netutil.cc), so the pointer advances past the buffer and the remaining-length computation underflows to a large value. A scanned target or on-path attacker returning a crafted IPv6 response with a truncated extension header can trigger out-of-bounds reads and a crash during raw IPv6 scans.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-191 — Integer Underflow (Wrap or Wraparound)
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Nmap | Nmap | 0 to <=7.99 |
References
- https://github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc (exploit third-party-advisory)
- https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83 (patch)
- https://nmap.org/changelog.html (release-notes)
- https://www.vulncheck.com/advisories/nmap-integer-underflow-in-ipv6-extension-header-parsing (third-party-advisory)
Generated from the official CVE List on 28 Jun 2026 07:01 UTC.