Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765148 - =net-analyzer/nmap-7.91 =net-analyzer/nmap-7.91-r1 ncat utility fails on unix socket writing
Summary: =net-analyzer/nmap-7.91 =net-analyzer/nmap-7.91-r1 ncat utility fails on unix...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal with 1 vote (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-01-12 18:56 UTC by Phazeus
Modified: 2021-03-11 18:15 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge --info.txt,11.23 KB, text/plain)
2021-01-12 20:06 UTC, Phazeus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Phazeus 2021-01-12 18:56:56 UTC
Same problem in =net-analyzer/nmap-7.91-r1 as well.
In older versions it works fine.

How to reproduce:

In first terminal:
ncat --no-shutdown -t --keep-open -l -U ./testsocket

In second terminal:
ncat -U ./testsocket --sh-exec "echo -e '123'"

fails with segfault error (segmentation fault).
There no something strange in strace.

Compiled with USE: ncat nping nse ssl
Comment 1 Phazeus 2021-01-12 20:06:08 UTC
Created attachment 682579 [details]
emerge --info
Comment 2 Phazeus 2021-01-12 20:10:22 UTC
Works fine in 7.80-r2 version and older.
Comment 3 Matthias St. Pierre 2021-03-11 18:05:38 UTC
I can confirm the crash.

This looks like it's issue https://github.com/nmap/nmap/issues/2154, which as been fixed upstream in https://github.com/nmap/nmap/commit/f6b40614e4a8131394792d590965f8af3c635323.
Comment 4 Larry the Git Cow gentoo-dev 2021-03-11 18:14:39 UTC
The bug has been closed via the following commit(s):

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

commit b2d8627328c93bdd62a507f7e78228a8e00de59e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-11 18:14:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-11 18:14:02 +0000

    net-analyzer/nmap: add upstream patches for ncat
    
    Closes: https://bugs.gentoo.org/765148
    Closes: https://bugs.gentoo.org/770808
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/nmap/files/nmap-7.91-ncat-proxy.patch |  37 +++++++
 .../nmap/files/nmap-7.91-ncat-unix-sockets.patch   |  30 ++++++
 net-analyzer/nmap/nmap-7.91-r2.ebuild              | 118 +++++++++++++++++++++
 3 files changed, 185 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-11 18:15:28 UTC
Thank you - and sorry for missing this until now!