nDPI/src/lib
Ivan Nardi 0c81498aa1
L2TP: fix out-of-bounds read on short control messages (#3307)
```
==253==ERROR: AddressSanitizer: use-after-poison on address 0x7a0db66b5828 at pc 0x5893db2adbf9 bp 0x7ffed45d3fc0 sp 0x7ffed45d3fb8
READ of size 2 at 0x7a0db66b5828 thread T0
    #0 0x5893db2adbf8 in ndpi_get_u_int16_t ndpi/src/include/ndpi_define.h:145:3
    #1 0x5893db2adbf8 in ndpi_int_l2tp_dissect_attrs ndpi/src/lib/protocols/l2tp.c:53:36
    #2 0x5893db2adbf8 in ndpi_search_l2tp ndpi/src/lib/protocols/l2tp.c:107:5
    #3 0x5893db1d2c57 in check_ndpi_detection_func ndpi/src/lib/ndpi_main.c:9277:6
```
Found by oss-fuzz
See: https://issues.oss-fuzz.com/issues/580370355?pli=1

While at it, fix an off-by-one in the AVP loop bounds checks, which
skipped an attribute ending exactly at the end of the packet.
2026-11-02 09:27:31 +01:00
..
inc_generated Ambiguous data in GitHub domain lists (#3293) 2026-10-23 13:21:59 +02:00
plugins Reworked code to split flow definition in core and metadata 2026-09-05 15:48:02 +02:00
protocols L2TP: fix out-of-bounds read on short control messages (#3307) 2026-11-02 09:27:31 +01:00
third_party Win fixes 2026-11-01 18:27:26 +01:00
Makefile.in Build: compiler-driven header dependency tracking; fix --with-ndpi-pro (#3239) 2026-08-29 14:54:11 +02:00
ndpi_analyze.c fuzz: improve coverage and add fuzzers for anomaly model and isolation forest algs (#3186) 2026-05-29 14:52:32 +02:00
ndpi_binary_bitmap.c (C) update 2026-01-01 10:31:40 +01:00
ndpi_bitmap.c (C) update 2026-01-01 10:31:40 +01:00
ndpi_bitmap64_fuse.c (C) update 2026-01-01 10:31:40 +01:00
ndpi_cache.c Reworked code to split flow definition in core and metadata 2026-09-05 15:48:02 +02:00
ndpi_classify.c Fix some warnings reported by CODESonar (#2227) 2024-01-12 13:30:43 +01:00
ndpi_community_id.c (C) update 2026-01-01 10:31:40 +01:00
ndpi_config.c TLS: improve sub-classification for Obfuscated traffic (#3297) 2026-10-28 11:41:27 +01:00
ndpi_content_match.c.inc Add JanitorAI detection (#3286) 2026-10-20 11:43:53 +02:00
ndpi_dga_match.c.inc Updated (C) 2023-04-28 23:00:33 +02:00
ndpi_domain_classify.c CI: compilation checks on more BSD flavors and add support for ubuntu 26.04 (#3188) 2026-06-22 17:20:16 +02:00
ndpi_domains.c CI: compilation checks on more BSD flavors and add support for ubuntu 26.04 (#3188) 2026-06-22 17:20:16 +02:00
ndpi_filter.c (C) update 2026-01-01 10:31:40 +01:00
ndpi_fingerprint.c fingerprint: disable debug log 2026-10-08 09:15:15 +02:00
ndpi_geoip.c geoip: keep NUL terminator inside caller buffers 2026-07-21 13:22:29 +00:00
ndpi_hash.c Added ndpi_murmur_hash_seed() API call 2026-10-10 10:08:29 +02:00
ndpi_main.c fuzz: avoid real DNS queries in ndpi_add_host_ip_subprotocol() 2026-11-02 09:10:29 +01:00
ndpi_memory.c QUIC: refactoring original Wireshark code (#3224) 2026-08-17 09:42:44 +02:00
ndpi_os_fingerprint.c.inc Improved nDPI TCP fingeprint specification 2026-10-11 12:52:14 +02:00
ndpi_plugin.c CI: compilation checks on more BSD flavors and add support for ubuntu 26.04 (#3188) 2026-06-22 17:20:16 +02:00
ndpi_serializer.c Serializer: fully restore the initial state in ndpi_reset_serializer() (#3299) 2026-10-26 17:34:39 +01:00
ndpi_utils.c ASN.1: make BER helpers public and fix some bugs (#3302) 2026-10-28 14:20:46 +01:00