Skip to content
OpenAdvisories
Medium · 6.5 Public exploit CVE-2026-58058 EUVD-2026-39978GHSA-wxvj-hc4r-fq45

Nmap - Integer Underflow in IPv6 Extension Header Parsing

Published Jun 28, 2026 · Updated Jun 29, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
Nmap Nmap ≤ 7.99 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nmap 7.99+dfsg-2 —
Debian 13 nmap No fix yet —
Debian 12 nmap No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 nmap No fix yet —
Ubuntu 26.04 LTS nmap No fix yet —
Ubuntu 25.10 nmap No fix yet —
Ubuntu 24.04 LTS nmap No fix yet —
Ubuntu 22.04 LTS nmap No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS nmap No fix yet —
Ubuntu 18.04 LTS nmap No fix yet —
Ubuntu 16.04 LTS nmap No fix yet —
Ubuntu 14.04 LTS nmap No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 nmap 7.92-150600.9.3.1 SUSE-SU-2026:3340-1
SLES 12 SP5 nmap 6.46-3.9.1 SUSE-SU-2026:3333-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 nmap 7.92-160000.3.1 SUSE-SU-2026:22814-1
SLES 16.0 nmap 7.92-160000.3.1 SUSE-SU-2026:22814-1
SLE Micro 6.2 nmap 7.92-160000.3.1 SUSE-SU-2026:22739-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nmap 7.95-4 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nmap 7.991-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References