Skip to content

nmap: nse_nsock.cc:342: void status(lua_State*, nse_status): Assertion `lua_stat us(L) == LUA_YIELD' failed. #3206

@marek22k

Description

@marek22k

Describe the bug
nmap crashes

To Reproduce
Run nmap

Expected behavior
No crash

Version info (please complete the following information):

  • OS: Debian 13
  • Output of nmap --version:
Nmap version 7.98SVN ( https://nmap.org )
Platform: x86_64-unknown-linux-gnu
Compiled with: liblua-5.4.7 openssl-3.5.1 libssh2-1.11.1 libz-1.3.1 libpcre2-10.46 libpcap-1.10.5 nmap-libdnet-1.18.0 ipv6
Compiled without:
Available nsock engines: epoll poll select
commit fcf6f0cb19e829720faa9f5ace506a582253104b (HEAD -> master, origin/master, origin/HEAD)
Author: nnposter <nnposter@e0a8ed71-7df4-0310-8962-fdc924857419>
Date:   Wed Oct 8 23:08:04 2025 +0000

    Use simpler/cheaper portrule

Additional context

nmap \
    -PS22,53,80 \
    -PU53 \
    -PE \
    -sS \
    -sU \
    -p U:53,69,123,161-162,443,514,520-521,547,33434-33436,T:7,9,13,17,19-23,25,37,43,53,69-70,79-80,88,110,115,119,123,143,161-163,179,194,300,389,443,465,513,520-521,540,547,563,587,631,636,655,747,853,873,989-990,992-993,995,1080,1194,1521,1688,1723,1900,1958,1965,2049,2086,2181,2200,2222,2375-2376,2759,2947,3128,3306,3478,3690,3978-3979,4500,4949,5000-5001,5072,5201,5222-5223,5269,5280,5353,5432,5500,5555,5699,5800-5801,5900-5901,6379,6443,6665-6669,6679,6696-6697,6924,7000-7001,7591,7777,8008,8044,8053-8054,8080-8081,8101,8118,8123,8291,8333,8443,8448,8808,9001,9030,9050-9051,9090,9100,9150,9418,9800,10000-10001,10250,11211,15000,16379,25565,26379,27015,27017,28801,30000,33434-33436,34197,51820,64738 \
    -sV \
    -O \
    --version-light \
    --traceroute \
    --script "(default or safe or discovery or version or vuln) and not (brute or dos or external or fuzzer or broadcast or broadcast-* or multicast-* or targets-*) or targets-traceroute" \
    --script-args "targets-traceroute.newtargets" \
    --max-rtt-timeout 1250ms \
    --initial-rtt-timeout 250ms \
    --max-retries 3 \
    --host-timeout 15m \
    --script-timeout 10m \
    --max-scan-delay 2s \
    --min-hostgroup 64 \
    --min-rate 2000 \
    -oN 2025_10_12_ipv6_dn42_port_scan.nmap \
    -oX 2025_10_12_ipv6_dn42_port_scan.xml \
    -oS 2025_10_12_ipv6_dn42_port_scan.snmap \
    -oG 2025_10_12_ipv6_dn42_port_scan.gnmap \
    --noninteractive \
    -6 \
    -iL addresses.txt

results in

Unexpected error 13 (Permission denied) in NSE_TYPE_READ callback - aborting thi
s service                                                                       Unexpected error 13 (Permission denied) in NSE_TYPE_READ callback - aborting thi
s service                                                                       Unexpected error 13 (Permission denied) in NSE_TYPE_READ callback - aborting thi
s service                                                                       Unexpected error 13 (Permission denied) in NSE_TYPE_READ callback - aborting thi
s service                                                                       Unexpected error 13 (Permission denied) in NSE_TYPE_READ callback - aborting thi
s service           
Unexpected error 13 (Permission denied) in NSE_TYPE_READ callback - aborting thi
s service           
Unexpected error 13 (Permission denied) in NSE_TYPE_READ callback - aborting thi
s service           
nmap: nse_nsock.cc:342: void status(lua_State*, nse_status): Assertion `lua_stat
us(L) == LUA_YIELD' failed.             
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions