CVE-2026-81417: Nmap < 7.992 Scan Freeze via Unreaped Errored Coroutine in tftp.lua
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
Event History
Frequently Asked Questions
What conditions are required to trigger the scan freeze?
An attacker needs to control or interfere with a TFTP exchange reached by the snmp-ios-config.nse script after its SNMP write sequence. Exploitation also requires user interaction because an operator must run an affected Nmap invocation using that workflow.
What is the operational impact of a successful trigger?
The affected NSE dispatcher can enter a zero-yield spin and freeze the entire Nmap invocation. The hang can occur before port scanning begins for any target included in the 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.
How can I determine whether an installation is affected?
Nmap versions before 7.992 are affected. An affected run may freeze during the TFTP exchange used by snmp-ios-config.nse after the SNMP write sequence.