AZL-116182: CVE-2026-81405 affecting package nmap 7.95-6
Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the Comm.ReceivePacket function of the NSE rpc.lua library, which buffers ONC-RPC record fragments using the server-declared fragment length without an upper bound. A malicious RPC service on a scanned host can declare fragments of up to roughly 2.1GB, and up to 400 fragments per call, causing the Nmap process to exhaust memory; the read path is reached by rpcinfo.nse during version detection (-sV) and is shared by the NFS, rusers and NetWorker scripts.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
nmapto a version that resolves this vulnerability.Fixed in 7.992
Event History
Frequently Asked Questions
When is an Nmap scan exposed to this issue?
The vulnerable read path is reached by the rpcinfo.nse script during version detection with -sV. It is also shared by the NFS, rusers, and NetWorker NSE scripts.
What does an attacker need to do to trigger the memory exhaustion?
An attacker needs to operate a malicious RPC service on a host being scanned. The service can advertise oversized ONC-RPC record fragments, causing Nmap to buffer server-declared lengths without an upper bound.
What is the potential impact on the scanning system?
The Nmap process can exhaust memory. A malicious service can declare fragments of roughly 2.1 GB each and up to 400 fragments per call.
Which package version is identified as affected?
The affected package is azure-linux/nmap version 7.95-6. The issue is described as affecting Nmap versions before 7.992.