Description
Nmap before 7.992 contains an infinite loop vulnerability in the negotiate_tn3270 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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Nmap | Nmap | < 7.992 | 7.992 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nmap | 7.993+dfsg-1 | — |
| Debian 13 | nmap | No fix yet | — |
| Debian 12 | nmap | No fix yet | — |
Advisories 1
- WID-SEC-2026-4820 nmap: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 25, 2026
References
- NSE 5-Second Non-Yielding Thread Kill Commit patch
- NSE Timer Callback Commit patch
- Nmap 7.992 Changelog release-notes
- Nmap Changelog release-notes
- VulnCheck Advisory: Nmap < 7.992 Infinite Loop via Conformant DEVICETYPE IS Response in tn3270.lua third-party-advisory