Description
ntop nDPI through 6.0 contains an out-of-bounds read vulnerability in dissect_softether_host_fqdn() in softether.c that compares host_name using the consumed byte count instead of data length. Remote attackers can send crafted short UDP datagrams on already-classified SoftEther flows, causing strncmp to read beyond the packet payload buffer.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ntop | nDPI | ≤ 6.0 | — |
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
- Pull Request #3298 issue-tracking patch
- Patch Commit patch
- https://github.com/ntop/nDPI product
- https://github.com/ntop/nDPI/blob/6.0/src/lib/protocols/softether.c#L203 technical-description
- https://hackmd.io/@haindpwn/ndpi-softether-host-fqdn-strncmp-oob-read third-party-advisory
- https://github.com/ntop/nDPI/issues/3291 issue-tracking
- VulnCheck Advisory: ntop nDPI through 6.0 Out-of-Bounds Read in SoftEther Dissector third-party-advisory