ubuntu-cve-2026-58058
Vulnerability from osv_ubuntu
Published
2026-06-28 02:16
Modified
2026-06-28 02:16
Summary
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.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "nmap",
            "binary_version": "6.40-0.2ubuntu1"
          },
          {
            "binary_name": "zenmap",
            "binary_version": "6.40-0.2ubuntu1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:14.04:LTS",
        "name": "nmap",
        "purl": "pkg:deb/ubuntu/nmap@6.40-0.2ubuntu1?arch=source\u0026distro=trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "6.40-0.1ubuntu1",
        "6.40-0.2ubuntu1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ndiff",
            "binary_version": "7.01-2ubuntu2"
          },
          {
            "binary_name": "nmap",
            "binary_version": "7.01-2ubuntu2"
          },
          {
            "binary_name": "zenmap",
            "binary_version": "7.01-2ubuntu2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "nmap",
        "purl": "pkg:deb/ubuntu/nmap@7.01-2ubuntu2?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "6.47-7",
        "7.01-2ubuntu1",
        "7.01-2ubuntu2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ndiff",
            "binary_version": "7.60-1ubuntu5"
          },
          {
            "binary_name": "nmap",
            "binary_version": "7.60-1ubuntu5"
          },
          {
            "binary_name": "zenmap",
            "binary_version": "7.60-1ubuntu5"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "nmap",
        "purl": "pkg:deb/ubuntu/nmap@7.60-1ubuntu5?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.60-1ubuntu1",
        "7.60-1ubuntu2",
        "7.60-1ubuntu3",
        "7.60-1ubuntu4",
        "7.60-1ubuntu5"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "nmap",
        "purl": "pkg:deb/ubuntu/nmap@7.80+dfsg1-2ubuntu0.1?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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.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_name": "nmap-common",
            "binary_version": "7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "nmap",
        "purl": "pkg:deb/ubuntu/nmap@7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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.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_name": "zenmap",
            "binary_version": "7.94+git20230807.3be01efb1+dfsg-3build2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "nmap",
        "purl": "pkg:deb/ubuntu/nmap@7.94+git20230807.3be01efb1+dfsg-3build2?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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.95+dfsg-3"
          },
          {
            "binary_name": "ndiff",
            "binary_version": "7.95+dfsg-3"
          },
          {
            "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "nmap",
        "purl": "pkg:deb/ubuntu/nmap@7.95+dfsg-3?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.95+dfsg-2",
        "7.95+dfsg-3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ncat",
            "binary_version": "7.98+dfsg-1"
          },
          {
            "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_name": "zenmap",
            "binary_version": "7.98+dfsg-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "nmap",
        "purl": "pkg:deb/ubuntu/nmap@7.98+dfsg-1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.95+dfsg-3",
        "7.98+dfsg-1"
      ]
    }
  ],
  "aliases": [],
  "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.",
  "id": "UBUNTU-CVE-2026-58058",
  "modified": "2026-06-28T02:16:00Z",
  "published": "2026-06-28T02:16:00Z",
  "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"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L",
      "type": "CVSS_V3"
    },
    {
      "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": "CVSS_V4"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2026-58058"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…