Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 86%

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

0
Medium
VulnerabilityCVE-2026-10639cvecve-2026-10639
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

GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=1.14.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: 07/15/2026, 10:45:34 UTC

Technical Analysis

In Zephyr's IPv4 stack, the icmpv4_handle_echo_request() function builds an echo-reply packet and passes it to net_try_send_data(), which transfers ownership of the packet to the transmission path. This transmission path may free the packet memory before the function attempts to update ICMP statistics using the packet's interface pointer, resulting in a use-after-free condition. The vulnerability allows a remote unauthenticated attacker to cause a use-after-free read and a potential write through a stale pointer, leading to corrupted network interface statistics or a denial of service. The issue is triggered by remote ICMP echo requests (pings) when CONFIG_NET_STATISTICS_ICMP is enabled. The defect was introduced in Zephyr version 1.14.0 and remains present through version 4.4.0. The patch caches the interface pointer from the live received packet before sending the reply, preventing access to freed memory.

Potential Impact

The vulnerability allows a remote unauthenticated attacker to cause a use-after-free condition by sending ICMP echo requests (pings) to the affected device. This can probabilistically lead to reading recycled packet memory and possibly writing through a wild pointer, resulting in corrupted interface statistics or a denial of service (crash). There is no confidentiality or integrity impact beyond the statistics corruption, but availability can be affected due to potential crashes.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, disabling CONFIG_NET_STATISTICS_ICMP will prevent the vulnerable code path from being executed. Avoid exposing the device to untrusted networks where remote ICMP echo requests can be sent.

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
Remediation Level
null

Threat ID: 6a3165080b89be6888c91b27

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

Last enriched: 07/15/2026, 10:45:34 UTC

Last updated: 07/31/2026, 19:22:57 UTC

Views: 75

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