CVE-2026-10666: Stack buffer overflow in `net_ipaddr_parse()` IPv4 address-with-port parsing in `subsys/net/ip/utils.c`

Published Jul 12, 2026
·
Updated

parseipv4() in subsys/net/ip/utils.c (reached via netipaddrparse() for strings of the form "a.b.c.d:port") copies the port substring into a fixed 17-byte stack buffer (char ipaddr[NETIPV4ADDRLEN + 1]) using a length of strlen - end - 1, where strlen 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 (zsockgetaddrinfo / 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 parseipv6() retains the same unbounded copy at this commit and remains a separate, still-reachable instance of the defect.

Affected Software

3 affected components
Zephyr Project Zephyr>=1.9.0<=4.4.0
Zephyr>=1.9.0<=4.4.0
zephyrproject zephyr>=1.9.0<=4.4.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Zephyr subsys/net/ip/utils.c net_ipaddr_parse() / parse_ipv4() IPv4 address-with-port parsing to a version that resolves this vulnerability.

    Fixed in 4.4.0
  2. Upgrade

    Upgrade Zephyr to a version that resolves this vulnerability.

    Fixed in 1.9.0
  3. Compensating control

    To reduce exposure via network-influenced address strings, avoid passing attacker-influenced literals into zsock_getaddrinfo / literal-address resolution, DNS server-string configuration, and the eswifi Wi-Fi co-processor DNS-response path.

Event History

Jul 12, 2026
CVE Published
via MITRE·04:16 PM
Data Sourced
via MITRE·04:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 18, 58512
Event
via NVD·07:09 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-10666?

The severity of CVE-2026-10666 is high with a CVSS score of 8.1.

2

How do I fix CVE-2026-10666?

To fix CVE-2026-10666, update the Zephyr Project to the latest version that includes an appropriate patch.

3

What type of vulnerability is CVE-2026-10666?

CVE-2026-10666 is a stack buffer overflow vulnerability affecting IPv4 address-with-port parsing.

4

Which software is affected by CVE-2026-10666?

CVE-2026-10666 affects the Zephyr Project and specifically its implementation in subsys/net/ip/utils.c.

5

What is the impact of CVE-2026-10666?

The impact of CVE-2026-10666 includes potential remote code execution due to stack overflow from unbounded input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203