Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918874 - =net-analyzer/nmap-7.94 segfault with --top-ports above 4060
Summary: =net-analyzer/nmap-7.94 segfault with --top-ports above 4060
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sam James
URL: https://github.com/nmap/nmap/issues/2655
Whiteboard:
Keywords: PullRequest
Depends on: 930960
Blocks:
  Show dependency tree
 
Reported: 2023-11-29 22:17 UTC by Hank Leininger
Modified: 2024-04-30 06:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hank Leininger 2023-11-29 22:17:12 UTC
Upstream acknowledged this and patched 2023-07-20 but there's no new release yet.

nmap-4.94 included a reworking of some list loading/processing, and in the process introduced a bug where nmap --top-ports with an argument larger than 4260 causes a segfault.

Fix in https://github.com/nmap/nmap/commit/edad9c059ca45bccab8c0f41fe6fc6546c60153a

I'll submit a PR shortly.
Comment 1 jospezial 2023-12-26 05:56:35 UTC
Your version here is wrong.
nmap-4.94 --> nmap-7.94
Comment 2 Hank Leininger 2023-12-26 17:20:54 UTC
(In reply to jospezial from comment #1)
> Your version here is wrong.
> nmap-4.94 --> nmap-7.94

Haha whoops you are right, fixed the typo in the Summary, thanks. Can't edit my comment, though.
Comment 3 Larry the Git Cow gentoo-dev 2024-04-27 04:20:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bae33e2d2aafdf4713ebd7497be221961e0359d3

commit bae33e2d2aafdf4713ebd7497be221961e0359d3
Author:     Hank Leininger <hlein@korelogic.com>
AuthorDate: 2023-11-29 22:33:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-27 04:19:43 +0000

    net-analyzer/nmap: fix segv with large --top-ports argument
    
    Signed-off-by: Hank Leininger <hlein@korelogic.com>
    Closes: https://bugs.gentoo.org/918874
    Closes: https://github.com/gentoo/gentoo/pull/34055
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/nmap/files/nmap-7.94-topport.patch |  26 ++++
 net-analyzer/nmap/nmap-7.94-r1.ebuild           | 189 ++++++++++++++++++++++++
 2 files changed, 215 insertions(+)