Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 1 min 129 bronnen 4 kritiek 56 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-10666

HIGH · 8.1 CVSS Gepubliceerd: CWE-121

Beschrijving NL

parse_ipv4() in subsys/net/ip/utils.c (bereikt via net_ipaddr_parse() voor tekenreeksen van de vorm "a.b.c.d:port") kopieert de poortsubreeks naar een vaste 17-byte stackbuffer (char ipaddr[NET_IPV4_ADDR_LEN + 1]) met een lengte van str_len - end - 1, waarbij str_len de volledige, onbegrensde invoerlengte is en end alleen de (<= 15-byte) offset van de delimiter ':' is. Omdat de bestemmingsgrootte nooit wordt geraadpleegd, veroorzaakt een vervaardigde adresreeks met een lang achtervoegsel na de dubbele punt (bijv. "1.2.3.4:" gevolgd door honderden bytes) een out-of-bounds stack-schrijven waarvan de lengte en inhoud volledig door de aanvaller worden gecontroleerd (memcpy van het achtervoegsel plus een achterliggende nul), waardoor geheugenbeschadiging en minimaal een denial of service en mogelijk een control-flow hijack mogelijk zijn. De parser wordt bereikt vanuit de standaard socket-API (zsock_getaddrinfo / letterlijke adresresolutie), DNS-server-stringconfiguratie en het eswifi Wi-Fi-co-processor DNS-responspad, zodat een applicatie die een door het netwerk beïnvloede adresreeks oplost, wordt weergegeven. De bug werd geïntroduceerd toen de parser werd toegevoegd (Zephyr v1.9.0) en in alle releases via v4.4.0 werd verzonden. De fix verwijdert de onbegrensde kopie en valideert de poortlengte voordat deze naar een kleine speciale buffer wordt gekopieerd. Opmerking: het equivalente IPv6 "[addr]:port" -pad in parse_ipv6() behoudt dezelfde onbeperkte kopie bij deze commit en blijft een afzonderlijk, nog steeds bereikbaar exemplaar van het defect.

Origineel (Engels) tonen

parse_ipv4() in subsys/net/ip/utils.c (reached via net_ipaddr_parse() for strings of the form "a.b.c.d:port") copies the port substring into a fixed 17-byte stack buffer (char ipaddr[NET_IPV4_ADDR_LEN + 1]) using a length of str_len - end - 1, where str_len is the full, unbounded input length and end is only the (<=15-byte) offset of the ':' delimiter. Because the destination size is never consulted, a crafted address string with a long suffix after the colon (e.g. "1.2.3.4:" followed by hundreds of bytes) causes an out-of-bounds stack write whose length and contents are fully attacker-controlled (memcpy of the suffix plus a trailing NUL), enabling memory corruption and at minimum a denial of service, and potentially control-flow hijack. The parser is reached from the standard socket API (zsock_getaddrinfo / literal-address resolution), DNS server-string configuration, and the eswifi Wi-Fi co-processor DNS-response path, so an application that resolves a network-influenced address string is exposed. The bug was introduced when the parser was added (Zephyr v1.9.0) and shipped in all releases through v4.4.0. The fix removes the unbounded copy and validates the port length before copying into a small dedicated buffer. Note: the equivalent IPv6 "[addr]:port" path in parse_ipv6() retains the same unbounded copy at this commit and remains a separate, still-reachable instance of the defect.

Vendors

Zephyrproject

Affected products

Zephyr

References