Nmap through 7.99 does not keep the IPv6 extension-header walk within the captured packet in ipv6getdata_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.
{
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"last_affected": "7.99"
}
]
},
{
"source": "CPE_FIELD",
"extracted_events": [
{
"last_affected": "7.99"
}
]
},
{
"source": "DESCRIPTION",
"extracted_events": [
{
"fixed": "7.99"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58058.json",
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-191"
]
}