{"id":"UBUNTU-CVE-2026-58058","details":"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.","modified":"2026-06-29T23:19:15.853447494Z","published":"2026-06-28T02:16:00Z","upstream":["CVE-2026-58058"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-58058"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-58058"},{"type":"REPORT","url":"https://github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc"},{"type":"REPORT","url":"https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83"},{"type":"REPORT","url":"https://nmap.org/changelog.html"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/nmap-integer-underflow-in-ipv6-extension-header-parsing"}],"affected":[{"package":{"name":"nmap","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/nmap?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.40-0.1ubuntu1","6.40-0.2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"6.40-0.2ubuntu1","binary_name":"nmap"},{"binary_name":"zenmap","binary_version":"6.40-0.2ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58058.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nmap?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.47-7","7.01-2ubuntu1","7.01-2ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"7.01-2ubuntu2","binary_name":"ndiff"},{"binary_version":"7.01-2ubuntu2","binary_name":"nmap"},{"binary_name":"zenmap","binary_version":"7.01-2ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58058.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nmap?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.60-1ubuntu1","7.60-1ubuntu2","7.60-1ubuntu3","7.60-1ubuntu4","7.60-1ubuntu5"],"ecosystem_specific":{"binaries":[{"binary_version":"7.60-1ubuntu5","binary_name":"ndiff"},{"binary_name":"nmap","binary_version":"7.60-1ubuntu5"},{"binary_version":"7.60-1ubuntu5","binary_name":"zenmap"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58058.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nmap?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.80+dfsg1-1build1","7.80+dfsg1-1build2","7.80+dfsg1-2","7.80+dfsg1-2build1","7.80+dfsg1-2ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"ncat","binary_version":"7.80+dfsg1-2ubuntu0.1"},{"binary_name":"ndiff","binary_version":"7.80+dfsg1-2ubuntu0.1"},{"binary_name":"nmap","binary_version":"7.80+dfsg1-2ubuntu0.1"},{"binary_name":"nmap-common","binary_version":"7.80+dfsg1-2ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58058.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nmap?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.91+dfsg1+really7.80+dfsg1-2","7.91+dfsg1+really7.80+dfsg1-2build1","7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"ncat","binary_version":"7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1"},{"binary_name":"ndiff","binary_version":"7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1"},{"binary_name":"nmap","binary_version":"7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1"},{"binary_version":"7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1","binary_name":"nmap-common"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58058.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nmap?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.94+git20230807.3be01efb1+dfsg-1","7.94+git20230807.3be01efb1+dfsg-2","7.94+git20230807.3be01efb1+dfsg-3","7.94+git20230807.3be01efb1+dfsg-3build1","7.94+git20230807.3be01efb1+dfsg-3build2"],"ecosystem_specific":{"binaries":[{"binary_name":"ncat","binary_version":"7.94+git20230807.3be01efb1+dfsg-3build2"},{"binary_name":"ndiff","binary_version":"7.94+git20230807.3be01efb1+dfsg-3build2"},{"binary_name":"nmap","binary_version":"7.94+git20230807.3be01efb1+dfsg-3build2"},{"binary_name":"nmap-common","binary_version":"7.94+git20230807.3be01efb1+dfsg-3build2"},{"binary_version":"7.94+git20230807.3be01efb1+dfsg-3build2","binary_name":"zenmap"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58058.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/nmap?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.95+dfsg-2","7.95+dfsg-3"],"ecosystem_specific":{"binaries":[{"binary_name":"ncat","binary_version":"7.95+dfsg-3"},{"binary_version":"7.95+dfsg-3","binary_name":"ndiff"},{"binary_name":"nmap","binary_version":"7.95+dfsg-3"},{"binary_name":"nmap-common","binary_version":"7.95+dfsg-3"},{"binary_name":"zenmap","binary_version":"7.95+dfsg-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58058.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/nmap?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.95+dfsg-3","7.98+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.98+dfsg-1","binary_name":"ncat"},{"binary_name":"ndiff","binary_version":"7.98+dfsg-1"},{"binary_name":"nmap","binary_version":"7.98+dfsg-1"},{"binary_name":"nmap-common","binary_version":"7.98+dfsg-1"},{"binary_version":"7.98+dfsg-1","binary_name":"zenmap"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58058.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}