nmap crashes when scanning /24 subnet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nmap (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Using Ubuntu 21.04 on bare metal. When attempting to perform a scan of an entire subnet, I receive the following error:
sudo nmap -sn 192.168.0.1/24
Starting Nmap 7.80 ( https:/
nmap: Target.cc:503: void Target:
Aborted
However, if I specify a smaller range, the scan is successful:
sudo nmap -sn 192.168.0.1-30
Starting Nmap 7.80 ( https:/
Nmap scan report for _gateway (192.168.0.1)
Host is up (0.0071s latency).
MAC Address: XXXXXX (XXXXXX)
Nmap scan report for 192.168.0.26
Host is up (0.047s latency).
MAC Address: XXXXXX (XXXXXX)
Nmap done: 30 IP addresses (2 hosts up) scanned in 1.15 seconds
Adding --min-paralleli
apt-cache policy nmap
nmap:
Installed: 7.91+dfsg1+
Candidate: 7.91+dfsg1+
Version table:
*** 7.91+dfsg1+
500 http://
100 /var/lib/
nmap -V
Nmap version 7.80 ( https:/
Platform: x86_64-pc-linux-gnu
Compiled with: liblua-5.3.3 openssl-1.1.1f nmap-libssh2-1.8.2 libz-1.2.11 libpcre-8.39 libpcap-1.10.0 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select
Hello,
Thanks for taking the time to file the bug and help in making Ubuntu Server better.
What you report has been reported upstream already via https:/ /github. com/nmap/ nmap/issues/ 1764. As per the comments, it is fixed via https:/ /github. com/nmap/ nmap/commit/ 33f421fd6e68fcb 8ed50071661d970 4717c81b2b.
The Ubuntu nmap package is in sync with the Debian package (https:/ /tracker. debian. org/pkg/ nmap). Can you perhaps open a bug there? So that once the bug is fixed there, it'll automatically be synced here as well? Thanks in advance! \o/