Impact
ICMP echo‑request handling in Zephyr’s IPv4 stack creates an echo‑reply packet that is sent before statistics are updated. The statistics update then reads the interface pointer from the reply packet after the packet has already been freed, causing a use‑after‑free read. When interface statistics per‑interface are enabled, the read also dereferences a stale pointer to increment a counter, potentially corrupting interface counters or, in a race condition, causing a device crash (DoS). The flaw is reachable by any remote host that sends ICMP echo requests and is enabled only when CONFIG_NET_STATISTICS_ICMP is set.
Affected Systems
Zephyr RTOS version 1.14 through 4.4.0 is affected. The defect was introduced in a 2019 release and remains present up to the v4.4.0 release. The fix is included in later Zephyr releases beyond 4.4.0.
Risk and Exploitability
The CVSS score is 4.8, indicating moderate severity, and the EPSS score is less than 1 %, suggesting low current exploitation likelihood. The issue is not listed in the C. The attack vector is unauthenticated remote ICMP traffic: any host that can send ICMP echo‑requests to the device can trigger the flaw. Because the race between packet send and the post‑send statistics update depends on timing, successful exploitation may be a device crash or loss of accurate interface statistics, for denial‑of‑service.
OpenCVE Enrichment