View Issue Details

IDProjectCategoryView StatusLast Update
0008481Kali LinuxKali Package Bugpublic2023-09-27 09:28
Reporterdukpt Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0008481: nmap SEGV on wrong -p parameter
Description

Hi,

A segmentation violation fault happens on nmap when not proper assigning port numbers on -p parameter. Please check below:

nmap -6 -p 29180,29790,fd53
Starting Nmap 7.94 ( https://nmap.org ) at 2023-09-27 08:42 UTC
Segmentation fault

Activities

dukpt

dukpt

2023-09-27 09:28

reporter   ~0018515

$ gdb -q /usr/bin/nmap
Reading symbols from /usr/bin/nmap...
(No debugging symbols found in /usr/bin/nmap)
(gdb) set args -6 -p 29180,29790,fd53
(gdb) set pagination off
(gdb) r
Starting program: /usr/bin/nmap -6 -p 29180,29790,fd53
[Thread debugging using libthread_db enabled]
[New Thread 0x7ff590f0a0 (LWP 3244)]
[New Thread 0x7ff30ff0a0 (LWP 3245)]
[New Thread 0x7ff28ef0a0 (LWP 3246)]
Starting Nmap 7.94 ( https://nmap.org ) at 2023-09-27 08:42 UTC

Thread 1 nmap received signal SIGSEGV, Segmentation fault.
0x00000055555fb3c4 in wildtest(char const, char const) ()
(gdb) bt
0 0x00000055555fb3c4 in wildtest(char const, char const) ()
1 0x00000055555e8c70 in addportsfromservmask(char const, unsigned char, int) ()
2 0x00000055555dfbec in ?? ()
3 0x00000055555e0460 in getpts(char const, scan_lists) ()
4 0x00000055555e9178 in gettoppts(double, char const, scan_lists, char const*) ()
5 0x00000055555a3b48 in apply_delayed_options() ()
6 0x00000055555aa224 in nmap_main(int, char**) ()
7 0x00000055555855a8 in main ()
(gdb)

Issue History

Date Modified Username Field Change
2023-09-27 09:27 dukpt New Issue
2023-09-27 09:28 dukpt Note Added: 0018515