Skip to main content
Vulnerability Database/CVE-2026-88357

CVE-2026-88357: nDPI DNS Dissector DoS Vulnerability

CVE-2026-88357 is a denial of service vulnerability in nDPI 5.1.0 affecting the DNS dissector through memory misalignment issues. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-88357 Overview

CVE-2026-88357 affects nDPI 5.1.0, an open-source deep packet inspection (DPI) library maintained by ntop. The vulnerability resides in the DNS dissector and serializer deserialization code. Specially crafted network input causes byte-buffer addresses at odd offsets to be cast to uint16_t or wider integer pointers and dereferenced without alignment checks. On strict-alignment architectures or UBSan-instrumented builds, this triggers undefined behavior and can terminate the host process, producing a denial-of-service condition.

Critical Impact

Remote, unauthenticated attackers can send crafted network traffic to any application embedding nDPI 5.1.0 and crash the parsing process, disrupting traffic inspection and network monitoring pipelines.

Affected Products

  • nDPI 5.1.0 (ntop deep packet inspection library)
  • Applications embedding nDPI 5.1.0 for traffic classification
  • Network monitoring tools built on ndpi_serializer and the DNS dissector

Discovery Timeline

  • 2026-09-24 - CVE-2026-88357 published to the National Vulnerability Database
  • 2026-09-24 - Last updated in NVD database

Technical Details for CVE-2026-88357

Vulnerability Analysis

The flaw is an unaligned memory access issue classified under CWE-1335: Incorrect Bitwise Shift of Integer. nDPI's DNS dissector and serializer deserialization paths treat raw byte buffers as structured integer fields. When input lands at an odd offset, the code casts a uint8_t* directly to uint16_t* or larger integer pointer types and dereferences it. On architectures that permit unaligned access the behavior is undefined by the C standard, and on strict-alignment architectures such as certain ARM, SPARC, and MIPS configurations the CPU raises a bus error. UBSan-instrumented builds abort immediately on the alignment violation.

Root Cause

The underlying cause is missing alignment enforcement for structures embedded in packet parsing buffers. The patch commits for issue #3213 reorganize ndpi_flow_serializer inside example/reader_util.h by wrapping it in an anonymous struct with a 4-byte _alignment padding array to guarantee natural alignment. The build system in configure.ac is also updated to enable -fsanitize=alignment instead of suppressing it, exposing remaining misalignments during continuous integration.

Attack Vector

The attack vector is network-based, requires no authentication, and no user interaction. An attacker sends a crafted DNS packet or serialized flow record that forces the dissector to read integer-sized fields at an odd byte offset. The resulting unaligned dereference crashes the parsing process on strict-alignment platforms or any build with alignment sanitization enabled, denying service to downstream traffic inspection consumers.

c
// Patch excerpt from example/reader_util.h
// Source: https://github.com/utoni/nDPI/commit/6698f14bf6025394a537fe23f413cf79e9d13594
    } bfcp;
  };

-  ndpi_serializer ndpi_flow_serializer;
+  struct {
+    uint8_t _alignment[4];
+    ndpi_serializer ndpi_flow_serializer;
+  };

  char host_server_name[80]; /* Hostname/SNI */
  char *server_hostname;
c
// Patch excerpt from src/include/ndpi_typedefs.h
// Source: https://github.com/utoni/nDPI/commit/6ce1280c52ed52a97332c3fe58fd2b47b867ec6e
typedef ndpi_ranking_epoch_entry ndpi_ranking_change;

typedef struct {
-  u_int32_t epoch;
+  u_int64_t epoch;
  ndpi_ranking_epoch_entry *entries;
} ndpi_ranking_epoch;

Detection Methods for CVE-2026-88357

Indicators of Compromise

  • Unexpected SIGBUS or SIGSEGV crashes in processes linking nDPI 5.1.0, especially DNS-handling workers
  • UBSan runtime reports referencing misaligned loads in ndpi_serializer or DNS dissector functions
  • Repeated restarts of DPI consumer services such as ntopng or custom flow collectors shortly after receiving external traffic

Detection Strategies

  • Enable -fsanitize=alignment and -fsanitize=undefined in test builds to surface the exact dereference locations
  • Hunt for anomalous DNS traffic patterns, particularly malformed responses or records that produce short, odd-length payload offsets
  • Correlate process crash telemetry on monitoring sensors with inbound packet captures to identify the triggering flow

Monitoring Recommendations

  • Monitor host logs for bus error and SIGBUS events on ARM, SPARC, and MIPS deployments running nDPI
  • Track service restart counts for applications embedding nDPI and alert on repeated short-interval restarts
  • Capture full packet traces at nDPI-enabled sensors to allow post-incident reconstruction of crash-inducing inputs

How to Mitigate CVE-2026-88357

Immediate Actions Required

  • Upgrade nDPI to a build that includes the fixes from pull request #3231 and issue #3213
  • Rebuild downstream applications against the patched library and redeploy to all sensors
  • Restrict exposure of nDPI-enabled services to untrusted networks until patching is complete

Patch Information

The maintainers addressed the issue in multiple commits that enforce alignment on serializer structures and re-enable the alignment sanitizer in CI. Relevant commits include 6698f14, 694231b, 6ce1280, and 8fc3b43.

Workarounds

  • Deploy nDPI on x86_64 hosts where unaligned access is tolerated by the CPU, accepting the residual undefined-behavior risk
  • Disable the DNS dissector in nDPI configuration where DNS classification is not required
  • Place upstream filtering such as a validating DNS proxy or firewall rules in front of nDPI sensors to reduce exposure to malformed packets
bash
# Rebuild nDPI from the patched source with alignment sanitization enabled
git clone https://github.com/ntop/nDPI.git
cd nDPI
./autogen.sh
./configure CFLAGS="-fsanitize=alignment -fsanitize=undefined" \
            LDFLAGS="-fsanitize=alignment -fsanitize=undefined"
make -j"$(nproc)"
sudo make install

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.