bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-72712

6.9medium

nmap7.95in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach nmap · 4 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

v25.03.17.95
v26.01.07.95
v26.09.07.95
v26.10.0latest7.95
aarch64_minimal
x86_64
aarch64_minimal–
x86_64AAwaiting review
aarch64_minimal–
x86_64AAwaiting review
aarch64_minimal–
x86_64AAwaiting review
aarch64_minimal–
x86_64AAwaiting review

Description · NVD

Nmap versions up to and including 7.99 contains a denial of service vulnerability that allows remote attackers to crash the application by sending a crafted packet containing a zero-length TCP option. The malformed packet forces the Packet:parse_options() function in nselib/packet.lua to allocate objects in an infinite loop, causing an out-of-memory condition that results in application crash.

Published 2026-08-11NVD

CVSS 4.0Network · no privileges · active user interaction

How it is reached

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
Active

What it costs

Confidentiality
None
Integrity
None
Availability
High

What it costs other systems

Confidentiality
None
Integrity
None
Availability
None

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References 4
Review Av26.10.0x86_64Not affectedFable 5.2 · high confidence · 2026-11-19

The CVE is in Packet:parse_options() in nselib/packet.lua, a Lua library that only runs inside the Nmap Scripting Engine (NSE). Buildroot configures nmap with --without-liblua, so this build has no Lua interpreter and no NSE: the generated Makefile sets -DNOLUA, excludes every nse_*.cc source, and leaves INSTALLNSE empty.

The unfixed packet.lua is present in the unpacked source tree (7.95 is inside the affected range, and neither applied patch touches it), but it is not installed: output/target/usr/share/nmap/ has no nselib directory, and no packet.lua or *.nse file exists anywhere under output/target. The nmap binary therefore cannot load or execute the vulnerable code, whatever arguments it is given.

Evidence 10
  1. `NMAP_CONF_OPTS = --without-liblua --without-zenmap ...` is unconditional, so NSE is disabled for every Buildroot build of this package.

    buildroot/package/nmap/nmap.mk:11

  2. The actual configure invocation for this build includes `--without-liblua`.

    output/build/nmap-7.95/config.log:7

  3. `CPPFLAGS = -DNOLUA ...`: nmap is compiled with the scripting engine code paths preprocessed out.

    output/build/nmap-7.95/Makefile:47

  4. `ifneq (yes,yes)` guards the `NSE_SRC`/`NSE_OBJS` definitions (lines 91-93), so the condition is false and no `nse_*.cc` file is compiled or linked.

    output/build/nmap-7.95/Makefile:90

  5. `INSTALLNSE=` is empty, so the `install` target (line 414) never runs the step that copies `nselib/*.lua` (lines 389-400) into the image.

    output/build/nmap-7.95/Makefile:78

  6. `/* #undef LUA_INCLUDED */` and `HAVE_LUA_H` variants (lines 175-178) undefined: no bundled or system Lua was picked up.

    output/build/nmap-7.95/nmap_config.h:152

  7. Contains only `nmap-mac-prefixes`, `nmap-os-db`, `nmap-protocols`, `nmap-rpc`, `nmap-service-probes`, `nmap-services`, `nmap.dtd`, `nmap.xsl`; there is no `nselib` or `scripts` directory, and a search of `output/target` for `packet.lua`, `nselib` and `*.nse` finds nothing.

    output/target/usr/share/nmap/

  8. `Packet:parse_options()` in the source tree is the unfixed version: when the length byte `l` is 0, `opt_ptr = opt_ptr + l` (line 710) never advances and the `while opt_ptr < length` loop keeps allocating. The file is source only, not built or installed.

    output/build/nmap-7.95/nselib/packet.lua:689

  9. Only `0001-libdnet-always-build-a-static-library.patch` and `0002-nping-Crypto.cc-fix-build-with-libressl-3.5.0.patch` are applied; neither touches `nselib/packet.lua`.

    output/build/nmap-7.95/.applied_patches_list

  10. `BR2_PACKAGE_NMAP=y` with `BR2_PACKAGE_NMAP_NMAP=y`, `BR2_PACKAGE_NMAP_NCAT=y`, `BR2_PACKAGE_NMAP_NPING=y` (lines 3411-3414), matching `configs/x86_64_defconfig:87-90`: the package is selected directly, but only the non-scripting binaries are built.

    output/.config:3411

Version and patches

The CVE description gives the affected range as nmap up to and including 7.99, so 7.95 is in range and the CPE match is correct (not a false positive). The fix is upstream commit 7ef4ee030a0023fe22616387a000032e1a678b6a; I could not read it (no network access), and no fixed release number is known from the tree.

The fix is not in this tree: output/build/nmap-7.95/nselib/packet.lua:689-714 has no zero-length guard, and neither of the two applied Buildroot patches touches that file. The build is unaffected only because the feature is not compiled: --without-liblua removes NSE and nselib entirely.

Recommendation

Document as not applicable: NSE/Lua is disabled by --without-liblua in buildroot/package/nmap/nmap.mk, and nselib/packet.lua is not shipped in the image. No upgrade or backport is needed for this CVE.

Re-evaluate if the package is ever rebuilt with Lua support (that is, if --without-liblua is dropped from NMAP_CONF_OPTS), since the 7.95 source itself is unfixed.

Open questions

The upstream fix commit and advisory were not consulted (read-only, offline review), so the affected range rests on the NVD description alone. This does not change the verdict, which depends only on NSE being absent.

The build directory holds no object files (none at the top level of output/build/nmap-7.95/), so the absence of NSE in the binary is established from the configure line, the generated Makefile and the installed file list rather than from the compiled objects.

One multi-command shell call was refused by the sandbox; I re-ran its checks as separate read-only commands, so nothing was left unchecked.

Members of Kernel Kit decide. Sign in if you are one.