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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **CWE:** CWE-121
- **Published:** 2026-07-12T16:16:50.160Z
- **Modified:** 2026-11-05T19:47:29.443Z

## Who should check

- Anyone running zephyrproject zephyr \>= 1.9.0, \< 4.6.0

## Description

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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 1.9.0, \< 4.6.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.6.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-10666. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-10666.md
Affected: zephyrproject zephyr >= 1.9.0, < 4.6.0
Fixed in: zephyrproject zephyr 4.6.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-10666 being exploited?

There is no confirmed exploitation: CVE-2026-10666 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-10666?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-10666?

zephyrproject zephyr \>= 1.9.0, \< 4.6.0.

### Is there a fix for CVE-2026-10666?

Yes. Fixed in zephyrproject zephyr 4.6.0. Upgrade zephyr to 4.6.0 or later.

### How do I check if I'm affected by CVE-2026-10666?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-532c-7g7f-jhmh>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/1c8d19a51f9a3c1be6de53854c8ad8c2720a0f48>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/6e119a636a57be449ea21e73cad762ebc6f5ff7a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-10666>

HTML: <https://flawdb.com/CVE-2026-10666> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-10666>
