Skip to main content
EPSS 0.2%top 86%

CVE-2026-10639: use-after-free in zephyrproject zephyr

0
Medium
VulnerabilityCVE-2026-10639cvecve-2026-10639gcvecwe-416
Published: 06/16/2026 (06/16/2026, 13:22:23 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

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.

CVSS v3.1

Score 4.8medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Affected software

zephyrproject

zephyr

Affected versions
>=4.2.0 <4.5.0
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=4.2.0 <4.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/07/2026, 13:09:30 UTC

Technical Analysis

In Zephyr's native IPv4 stack, the function icmpv4_handle_echo_request() creates an echo-reply packet and passes it to net_try_send_data(), which transfers ownership of the packet to the transmission path. The packet may be freed asynchronously before the code updates ICMP statistics using net_pkt_iface(reply), resulting in a use-after-free read and potentially a write through a stale pointer. This defect, introduced in version 1.14.0 and present through 4.4.0, can be triggered remotely by any unauthenticated host sending an ICMP echo request (ping) when CONFIG_NET_STATISTICS_ICMP is enabled. The impact is primarily a probabilistic memory read of recycled packet data and a possible crash due to corrupted interface statistics. The fix involves caching the interface pointer before sending the packet to avoid accessing freed memory.

Potential Impact

The vulnerability allows a remote unauthenticated attacker to cause a use-after-free condition by sending ICMP echo requests, potentially leading to corrupted network interface statistics or a denial of service via a crash. There is no confidentiality or integrity impact reported. The CVSS score is 4.8 (medium severity) reflecting network attack vector, high attack complexity, no privileges required, no user interaction, no confidentiality impact, limited integrity impact, and low availability impact.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability requires CONFIG_NET_STATISTICS_ICMP to be enabled, so disabling this configuration option can mitigate the issue. Monitor the Zephyr project advisories for an official fix that caches the interface pointer before sending the echo-reply packet to prevent use-after-free access.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
zephyr
Date Reserved
2026-06-02T15:11:39.435Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a3165080b89be6888c91b27

Added to database: 06/16/2026, 15:00:24 UTC

Last enriched: 08/07/2026, 13:09:30 UTC

Last updated: 09/14/2026, 10:01:29 UTC

Views: 120

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses