# CVE-2026-10639: Use-after-free reading \`net\_pkt\_iface()\` of a sent ICMPv4 echo-reply packet in \`icmpv4\_handle\_echo\_request()\`

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

- **Severity:** MEDIUM 4.8
- **CVSS:** 4.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.23% (percentile 15, 2026-12-02)
- **CWE:** CWE-416
- **Published:** 2026-06-16T13:22:23.165Z
- **Modified:** 2026-11-04T04:58:09.872Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.2.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1

## Description

In Zephyr's native IPv4 stack, icmpv4\_handle\_echo\_request() in subsys/net/ip/icmpv4.c builds an echo-reply packet (reply), hands it to net\_try\_send\_data(), and then, on success, calls net\_stats\_update\_icmp\_sent(net\_pkt\_iface(reply)). net\_try\_send\_data() transfers ownership of reply to the TX path (net\_if\_try\_queue\_tx -\> net\_if\_tx -\> L2/driver send, or the asynchronous net\_if\_tx\_thread), which can unref it to refcount 0 and return the struct net\_pkt to its slab (net\_pkt\_unref -\> k\_mem\_slab\_free) before the stats line runs. net\_core.c documents this exact contract ('the pkt might contain garbage already ... do not use pkt after that call').

The post-send net\_pkt\_iface(reply) therefore reads reply-\>iface out of a freed (and possibly already reallocated) net\_pkt, a use-after-free read; with CONFIG\_NET\_STATISTICS\_PER\_INTERFACE the stats macro additionally increments a counter through that value, i.e. a dereference/write through a stale or recycled-slot pointer.

The path is reached unauthenticated by any remote host that pings the device (net\_icmpv4\_input -\> net\_icmp\_call\_ipv4\_handlers -\> icmpv4\_handle\_echo\_request) and is gated on CONFIG\_NET\_STATISTICS\_ICMP. Impact is a probabilistic read of recycled packet memory plus a possible wild-pointer write under a timing race, leading most likely to corrupted interface statistics or a remotely triggerable crash (DoS).

The defect was introduced in 2019 (v1.14) and is present through v4.4.0. The companion change in net\_icmpv4\_send\_error() is not a use-after-free because it reads net\_pkt\_iface(orig), the caller-owned received packet, which stays alive across the send. The fix caches the interface pointer from the live received packet before sending and uses it for the post-send stats updates.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.2.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1 (cvelist)

## Mitigation

- Upgrade zephyr to 4.4.1 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-10639. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-10639.md
Affected: zephyrproject zephyr >= 4.2.0, < 4.3.1; >= 4.4.0, < 4.4.1
Fixed in: zephyrproject zephyr 4.3.1, zephyrproject zephyr 4.4.1

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-10639 being exploited?

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

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

Medium: CVSS 4.8 (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-10639?

zephyrproject zephyr \>= 4.2.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1.

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

Yes. Fixed in zephyrproject zephyr 4.3.1, zephyrproject zephyr 4.4.1. Upgrade zephyr to 4.4.1 or later.

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

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-qhrf-w466-qmpw>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/86e21665d4641f304dc3895bfb03b8f89db83291>

## 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-10639>

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