AZL-116218: CVE-2026-81417 affecting package nmap 7.95-6
Nmap before 7.992 contains an infinite loop vulnerability in the dispatcher of the NSE tftp.lua library, which removes completed coroutines but not ones that ended in an error, leaving a zero-yield spin. A malicious TFTP exchange reached by snmp-ios-config.nse after an SNMP write sequence can leave a dead coroutine that freezes the entire Nmap invocation, before port scanning begins for any target in the run; the hang is prevented when the script-timeout option is set.
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 - Configuration
Set the script-timeout option to prevent the hang.
Nmap script-timeout = set
Event History
Frequently Asked Questions
What conditions are required for exploitation?
An attacker needs to control or influence a TFTP exchange reached by the snmp-ios-config.nse script after its SNMP write sequence. The resulting malformed or error-ending exchange can leave a dead coroutine in the NSE TFTP dispatcher.
What is the operational impact?
The issue can freeze the entire Nmap invocation in a zero-yield spin. The hang occurs before port scanning begins for any target included in that run.
Is there a mitigation if updating Nmap is not immediately possible?
Set the script-timeout option. The provided information states that this prevents the hang.
Which versions are affected?
Nmap versions before 7.992 are affected. The reported Azure Linux package is nmap 7.95-6.