CVE-2026-81415: Nmap < 7.992 Infinite Loop via Conformant DEVICETYPE IS Response in tn3270.lua
Nmap before 7.992 contains an infinite loop vulnerability in the negotiatetn3270 function of the NSE tn3270.lua library, whose device-type search loop does not advance when the server sends a protocol-conformant DEVICETYPE IS response without an LU suffix. A TN3270E server on a scanned host, including a non-malicious one that sends such a response, causes a permanent 100% CPU hang of the Nmap process when tn3270-screen.nse runs, which the script-timeout option does not interrupt.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.992
Event History
Frequently Asked Questions
Which scans are exposed to this issue?
Nmap versions before 7.992 are affected when the tn3270-screen.nse script runs against a TN3270E server that returns a DEVICETYPE IS response without an LU suffix.
Does exploitation require a malicious TN3270E server?
No. A non-malicious server can trigger the condition if it sends the protocol-conformant DEVICETYPE IS response described in the issue.
Will script-timeout recover a hung scan?
No. The script-timeout option does not interrupt this infinite loop, and the Nmap process can remain permanently hung at 100% CPU.
How can I recognize that a scan has been affected?
The Nmap process will hang at 100% CPU while tn3270-screen.nse is running against the affected server response.
What version resolves the issue?
Nmap 7.992 is not included in the affected version range; versions before 7.992 are affected.