AZL-116203: CVE-2026-81412 affecting package nmap 7.95-6
Nmap before 7.992 contains an excessive memory allocation vulnerability in the unmarshallarray 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 Software
Event History
Frequently Asked Questions
Which scans are exposed to a malicious SMB server?
Nmap scans that run the smb-enum-shares.nse script are exposed. This script is in the default script category, so scans using -sC or -A can trigger the vulnerable code when scanning a malicious SMB host.
What must an attacker control to exploit this issue?
The attacker needs to operate or control an SMB server on a host being scanned. The server can return an EntriesRead value of 0xFFFFFFFF with an empty buffer, causing the Nmap process to spin CPU and exhaust memory.
Are default Nmap script scans affected?
Yes. smb-enum-shares.nse is included in the default script category, making scans invoked with -sC or -A affected when they contact a malicious SMB server.
What is the impact on the scanning system?
The issue can cause prolonged CPU consumption and memory exhaustion in the Nmap process. The available data describes a denial-of-service condition affecting the system performing the scan.