Description
nDPI 5.1.0 contains a memory access issue in the DNS dissector and serializer deserialization code. Specially crafted network input can cause byte-buffer addresses at odd offsets to be cast to uint16_t or wider integer pointers and directly dereferenced without alignment checks. This results in undefined behavior and can cause process termination in UBSan-instrumented builds or on strict-alignment architectures, leading to denial of service.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ndpi | No fix yet | — |
| Debian 13 | ndpi | No fix yet | — |
| Debian 12 | ndpi | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ndpi | No fix yet | — |
| Ubuntu 26.04 LTS | ndpi | No fix yet | — |
| Ubuntu 24.04 LTS | ndpi | No fix yet | — |
| Ubuntu 22.04 LTS | ndpi | No fix yet | — |
| Ubuntu 20.04 LTS | ndpi | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | ndpi | No fix yet | — |
| Ubuntu 16.04 LTS | ndpi | No fix yet | — |
References
- https://github.com/ntop/nDPI/issues/3213
- https://github.com/utoni/nDPI/commit/6ce1280c52ed52a97332c3fe58fd2b47b867ec6e
- https://github.com/utoni/nDPI/commit/8fc3b439920021a77165f8aee4f81b25bc88629e
- https://github.com/utoni/nDPI/commit/694231bb43ff21f452fbc2b53fcf6cdc9a99f75f
- https://github.com/utoni/nDPI/commit/6698f14bf6025394a537fe23f413cf79e9d13594
- https://github.com/ntop/nDPI/pull/3231