Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-81412 EUVD-2026-135607GHSA-2v7r-rwhx-jrxc

Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua

Published Nov 25, 2026 · Assigned by VulnCheck

Description

Nmap before 7.992 contains an excessive memory allocation vulnerability in the unmarshall_array function of the NSE msrpctypes.lua library, which trusts the entry count declared by the server. A malicious SMB server on a scanned host can declare an EntriesRead value of 0xFFFFFFFF with an empty buffer, causing a prolonged CPU spin and exhausting the memory of the Nmap process; the library is used by smb-enum-shares.nse in the default script category (-sC, -A).

Affected products

VendorProductAffectedFixed
Nmap Nmap < 7.992 7.992

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.993+dfsg-1 —
Debian 13 nmap No fix yet —
Debian 12 nmap No fix yet —

Advisories 1

References