Bug 1221403

Summary: nmap segfaults when passing a named port
Product: [openSUSE] openSUSE Tumbleweed Reporter: Felix Niederwanger <felix.niederwanger>
Component: OtherAssignee: Andreas Stieger <Andreas.Stieger>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: Andreas.Stieger, anicka, danilo.spinella, jubalh, pdostal
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Felix Niederwanger 2024-03-14 12:55:10 UTC
Then passing a named port via '-p', nmap segfaults:

> $ nmap -6 -Pn -p ssh fee8::5054:ff:fe95:baef
> Starting Nmap 7.94 ( https://nmap.org ) at 2024-03-14 13:53 CET
> Segmentation fault (core dumped)

But it works when the port is passed by number:

> $ nmap -6 -Pn -p 22 fee8::5054:ff:fe95:baef
> Starting Nmap 7.94 ( https://nmap.org ) at 2024-03-14 13:52 CET
> Nmap scan report for tumbleweed (fee8::5054:ff:fe95:baef)
> Host is up (0.00041s latency).
> 
> PORT   STATE SERVICE
> 22/tcp open  ssh
> 
> Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds

I'm running Nmap version 7.94 ( https://nmap.org ) from Tumbleweed snapshot 20240310
Comment 1 Felix Niederwanger 2024-03-14 13:15:39 UTC
Submitted upstream as well: https://github.com/nmap/nmap/issues/2801
Comment 2 Andreas Stieger 2024-03-14 18:43:47 UTC
duplicate of https://github.com/nmap/nmap/issues/2658
already fixed upstream
Comment 3 Andreas Stieger 2024-03-14 19:11:57 UTC
https://build.opensuse.org/request/show/1158073