Bug 1221403 - nmap segfaults when passing a named port
Summary: nmap segfaults when passing a named port
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Andreas Stieger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-14 12:55 UTC by Felix Niederwanger
Modified: 2024-03-14 19:11 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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