nmap 7.80 crashes with Assertion `htn.toclock_running == true'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nmap |
Fix Released
|
Unknown
|
|||
nmap (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Committed
|
Medium
|
Bryce Harrington | ||
Jammy |
Fix Released
|
Medium
|
Bryce Harrington |
Bug Description
[Impact]
Within affected networks, nmap can intermittently hit an assertion involving a timeout clock.
[Test Case]
This bug presents itself under certain network conditions we've not isolated, making reproduction of the issue challenging. Even for those who experience the issue, it can only appear once in scores or hundreds of runs. For this reason, we're relying on community members to handle the validation requirements by confirming the absence of the abnormal termination in their own environments after running it for a period of days or weeks.
A suggested workload to help trigger the crash is to run nmap in a loop against a subnet IP known to crash, e.g.:
c=0
while sudo nmap -PS22 -p22 192.168.77.0/24
do c=$(($c+1))
echo $c
done
So, the plan for testing this bug will involve asking these kind community members to install the package from -proposed and run it continuously for some time. The expectation is that the assertion will not manifest with the new package.
[Where Problems Could Occur]
The fix involves a modification to stop the timeout clock, which is intended to happen when an unexpected ARP response is received. Thus, issues to watch for would be odd behaviors relating to unsolicited ARP responses, new assertions or crashes occurring elsewhere in the program, and program timeouts that occur when they shouldn't or don't occur when they should.
[Original Report]nmap version 7.80 crashes on Ubuntu 20.04 LTS:
$ sudo nmap -n 192.168.1.223/24
Starting Nmap 7.80 ( https:/
nmap: Target.cc:503: void Target:
== true' failed.
Aborted
Issue was reported in nmap github repository:
- https:/
- https:/
Issue is fixed since nmap 7.90 by following commit:
- https:/
Please integrate aboce change into nmap releaseon Ubuntu 20.04 LTS or upgrade nmap to newer version
Related branches
- git-ubuntu bot: Approve
- Athos Ribeiro (community): Approve
- Canonical Server: Pending requested
- Canonical Server Reporter: Pending requested
- Canonical Server Core Reviewers: Pending requested
-
Diff: 102 lines (+61/-1) (has conflicts)4 files modifieddebian/changelog (+16/-0)
debian/control (+2/-1)
debian/patches/avoid-assertion-failure-when-unsolicited-arp-response-received.patch (+38/-0)
debian/patches/series (+5/-0)
- git-ubuntu bot: Approve
- Athos Ribeiro (community): Approve
- Canonical Server Reporter: Pending requested
- Canonical Server Core Reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 83 lines (+49/-1)4 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/avoid-assertion-failure-when-unsolicited-arp-response-received.patch (+38/-0)
debian/patches/series (+1/-0)
Changed in nmap: | |
status: | Unknown → Fix Released |
Changed in nmap (Ubuntu): | |
status: | Incomplete → Fix Released |
tags: | added: server-todo |
Changed in nmap (Ubuntu Focal): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in nmap (Ubuntu Jammy): | |
assignee: | nobody → Bryce Harrington (bryce) |
description: | updated |
Changed in nmap (Ubuntu Focal): | |
status: | Triaged → Fix Committed |
Changed in nmap (Ubuntu Jammy): | |
status: | Triaged → Fix Committed |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
tags: | removed: server-todo |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1908223
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.