CVE-2026-134762: ntop nDPI through 6.0 Out-of-Bounds Read via ndpi_serializer_get_buffer
ntop nDPI through 6.0 contains a heap out-of-bounds read and unsigned length underflow in ndpiserializergetbuffer() in src/lib/ndpiserializer.c when stripping leading NUL and space bytes. Buffers holding only spaces or NULs, or a used length of 0 set through ndpiserializersetbufferlen(), cause reads past the heap buffer or a wrapped 4294967295 length, crashing the embedding application.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Applications that embed nDPI and call ndpi_serializer_get_buffer() are exposed when the serializer buffer can have a used length of zero or contain only leading space or NUL bytes. The described impact is a crash of the embedding application.
What input or state is needed to trigger the out-of-bounds read?
The affected function is triggered by a buffer containing only spaces or NUL bytes while it strips leading bytes, or when ndpi_serializer_set_buffer_len() has set the used length to 0. In the zero-length case, unsigned length underflow can produce a length of 4294967295.
How can I determine whether my application may be affected?
Review whether your application uses nDPI through version 6.0 and invokes ndpi_serializer_get_buffer(). It may be affected if it can pass serializers with an empty used length or buffers whose contents are entirely spaces or NUL bytes.
What can be done if updating is not immediately possible?
Avoid calling ndpi_serializer_get_buffer() with a used length of 0, and prevent buffers passed to it from containing only spaces or NUL bytes. Ensure values supplied through ndpi_serializer_set_buffer_len() do not result in an empty used buffer before retrieving it.