p PatchFirst

CVE-2026-58058

CVE-2026-58058 · Nmap - Integer Underflow in IPv6 Extension Header Parsing

CVSS 6.9 · Medium · EPSS 1.5% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • nmapNo fix published
  • nmap Debian 12No fix published
  • nmap Debian 13No fix published
  • nmap Debian 14Update to 7.99+dfsg-2
  • and 9 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="nmap"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • SUSE-SU-2026:3340-1 · SUSE Linux Enterprise Module for Basesystem 15 SP7, SUSE Linux Enterprise Module for Package Hub 15 SP7 ·
  • SUSE-SU-2026:3333-1 · SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
  • SUSE-SU-2026:22739-1 · SUSE Linux Micro Extras 6.2 ·
  • SUSE-SU-2026:22814-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·

Stack: system

Affected products and versions

  • nmap

    Versions
    • ≥ 0, ≤ 7.99: Affected (custom)

    No fix published

  • nmap Debian 12

    Versions
    • 7.93+dfsg1-1
    • 7.94+dfsg1-1
    • 7.94+dfsg1-1~exp1
    • 7.94+dfsg1-2
    • 7.94+dfsg1-3
    • 7.94+dfsg1-3~bpo12+1
    All versions (21)
    • 7.94+dfsg1-4
    • 7.94+git20230807.3be01efb1+dfsg-1
    • 7.94+git20230807.3be01efb1+dfsg-1~bpo12+1
    • 7.94+git20230807.3be01efb1+dfsg-2
    • 7.94+git20230807.3be01efb1+dfsg-3
    • 7.94+git20230807.3be01efb1+dfsg-4
    • 7.94+git20230807.3be01efb1+dfsg-4~bpo12+1
    • 7.95+dfsg-1
    • 7.95+dfsg-2
    • 7.95+dfsg-3
    • 7.98+dfsg-1
    • 7.98+dfsg-1~bpo13+1
    • 7.99+dfsg-1
    • 7.99+dfsg-2
    • 7.991+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Debian 13

    Versions
    • 7.95+dfsg-3
    • 7.98+dfsg-1
    • 7.98+dfsg-1~bpo13+1
    • 7.99+dfsg-1
    • 7.99+dfsg-2
    • 7.991+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Debian 14

    Versions
    • 7.95+dfsg-3
    • 7.98+dfsg-1
    • 7.98+dfsg-1~bpo13+1
    • 7.99+dfsg-1
    Affected ranges
    • ECOSYSTEM: < 7.99+dfsg-2

    Update to 7.99+dfsg-2

  • nmap Ubuntu 14.04 LTS

    Versions
    • 6.40-0.1ubuntu1
    • 6.40-0.2ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Ubuntu 16.04 LTS

    Versions
    • 6.47-7
    • 7.01-2ubuntu1
    • 7.01-2ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Ubuntu 18.04 LTS

    Versions
    • 7.60-1ubuntu1
    • 7.60-1ubuntu2
    • 7.60-1ubuntu3
    • 7.60-1ubuntu4
    • 7.60-1ubuntu5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Ubuntu 20.04 LTS

    Versions
    • 7.80+dfsg1-1build1
    • 7.80+dfsg1-1build2
    • 7.80+dfsg1-2
    • 7.80+dfsg1-2build1
    • 7.80+dfsg1-2ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Ubuntu 22.04 LTS

    Versions
    • 7.91+dfsg1+really7.80+dfsg1-2
    • 7.91+dfsg1+really7.80+dfsg1-2build1
    • 7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Ubuntu 24.04 LTS

    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
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Ubuntu 25.10

    Versions
    • 7.95+dfsg-2
    • 7.95+dfsg-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Ubuntu 26.10

    Versions
    • 7.98+dfsg-1
    • 7.99+dfsg-1ubuntu1
    • 7.99+dfsg-1ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nmap Ubuntu 26.04 LTS

    Versions
    • 7.95+dfsg-3
    • 7.98+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →