Nmapに過大なメモリ確保の脆弱性、悪意あるSMBサーバーで処理が停止するおそれ
Summary
Nmap 7.992より前のバージョンには、スキャン対象のSMBサーバーが申告する配列の件数を検証せずに信用し、過大なメモリを確保してしまう脆弱性が見つかりました。悪意あるSMBサーバーに対してNmapを実行すると、CPUを長時間占有し、Nmapプロセスのメモリを使い果たすおそれがあります。対策として、7.992以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Nmap 7.992より前のバージョンには、スキャン対象のSMBサーバーが申告する配列の件数を検証せずに信用し、過大なメモリを確保してしまう脆弱性が見つかりました。悪意あるSMBサーバーに対してNmapを実行すると、CPUを長時間占有し、Nmapプロセスのメモリを使い果たすおそれがあります。対策として、7.992以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| NmapNmap |
< 7.992→ 7.992 |
7.992 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-81412 nmap Fix available
- Ubuntu UBUNTU-CVE-2026-81412 nmap No fixed version in this record
Original description The description as published by the source.
Nmap before 7.992 contains an excessive memory allocation vulnerability in the unmarshall_array function of the NSE msrpctypes.lua library, which trusts the entry count declared by the server. A malicious SMB server on a scanned host can declare an EntriesRead value of 0xFFFFFFFF with an empty buffer, causing a prolonged CPU spin and exhausting the memory of the Nmap process; the library is used by smb-enum-shares.nse in the default script category (-sC, -A).
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nmap.org
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com