Skip to main content

Zephyr RTOS CVE-2026-10655

| EUVDEUVD-2026-40370 MEDIUM
Use After Free (CWE-416)
2026-06-30 zephyr
5.9
CVSS 3.1 · NVD
Share

Severity by source

Vendor (zephyr) PRIMARY
MEDIUM
qualitative
NVD
5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI
6.5 MEDIUM

Network-reachable via UDP NTP suppression with no privileges; AC:H for race-condition timing; A:H for networking thread crash; I:L for speculative memory corruption on context reuse.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
CVSS changed
Jul 06, 2026 - 19:52 NVD
6.5 (MEDIUM) 5.9 (MEDIUM)
Analysis Generated
Jun 30, 2026 - 17:26 vuln.today

DescriptionNVD

The asynchronous SNTP client in Zephyr (subsys/net/lib/sntp/sntp.c, sntp_close_async) closed the UDP socket file descriptor directly from the calling thread immediately after detaching it from the network socket service, without synchronizing with the socket-service poll thread.

The socket service thread polls each socket via zvfs_poll, which (in zsock_poll_prepare_ctx) registers a k_poll_event pointing into the socket's net_context (&ctx->recv_q) and then blocks in k_poll without holding a reference or lock. net_context objects are allocated from a fixed pool (contexts[CONFIG_NET_MAX_CONTEXTS]) and reused after close.

When sntp_close_async is invoked from a different thread than the poll thread (in the in-tree consumer subsys/net/lib/config/init_clock_sntp.c, the SNTP timeout handler runs on the system workqueue while the socket service thread is blocked in poll on the same fd), the close frees and may reuse the net_context while the poll thread still has a poller node linked into the freed object, resulting in a use-after-free / object confusion of kernel poll structures.

The SNTP timeout path is the normal no-response failure mode, so a network peer or off-path attacker who drops or delays the SNTP/NTP response can drive the racing close repeatedly (and periodically with NET_CONFIG_SNTP_INIT_RESYNC). The most likely consequence is a crash of the networking thread (denial of service), with potential memory corruption when the freed context slot is reallocated.

The fix defers the close to the socket service thread itself via net_socket_service_close (NET_SOCKET_SERVICE_CLOSE_SOCKETS), so the same thread that polls performs the close, eliminating the race. Affected releases: v4.2.0 through v4.4.0.

AnalysisAI

Use-after-free in Zephyr's asynchronous SNTP client (sntp_close_async, v4.2.0-v4.4.0) can be triggered remotely by any network peer or off-path attacker capable of dropping or delaying UDP NTP responses, exploiting a race between the system workqueue thread and the socket-service poll thread. The most probable outcome is a crash of the networking subsystem thread (denial of service); where the freed net_context pool slot is rapidly reallocated, memory corruption is possible. The vulnerability is on the normal SNTP timeout path, making it reliably and periodically triggerable when NET_CONFIG_SNTP_INIT_RESYNC is enabled. No public exploit code and no CISA KEV listing have been identified at time of analysis.

Technical ContextAI

Zephyr RTOS (cpe:2.3:a:zephyrproject:zephyr:*:*:*:*:*:*:*:*) implements an asynchronous SNTP client in subsys/net/lib/sntp/sntp.c. The socket-service architecture relies on a dedicated poll thread that calls zvfs_poll on registered UDP socket file descriptors; internally, zsock_poll_prepare_ctx installs a k_poll_event node whose pointer targets the net_context object's receive queue (&ctx->recv_q). Net contexts are allocated from a bounded fixed pool (CONFIG_NET_MAX_CONTEXTS) and are reused after close. The root cause is CWE-416 (Use After Free): sntp_close_async, when invoked from the system workqueue (the SNTP timeout handler path in subsys/net/lib/config/init_clock_sntp.c), closes and releases the UDP socket's net_context without acquiring any lock or reference count on the poll thread's k_poll_event node. The poll thread can therefore dereference the now-freed - and potentially reallocated - net_context slot, producing object confusion of kernel poll structures. The fix serializes the close by deferring it to the socket-service thread itself via net_socket_service_close (NET_SOCKET_SERVICE_CLOSE_SOCKETS), ensuring the closing and polling operations are always performed by the same thread.

RemediationAI

Upstream fix available via GitHub commit ef47bdf328b4206ac3b3922ec09184f7a6f7412a in the zephyr-project-rtos/zephyr repository; a tagged patched release version has not been independently confirmed from the available references - consumers should verify with the vendor advisory at https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-34wr-cg29-c4mw. Projects integrating Zephyr as a submodule or West module should update to a commit at or after ef47bdf. As a compensating control where patching is not immediately possible, disabling NET_CONFIG_SNTP_INIT_RESYNC eliminates the periodic resync trigger and reduces the attack surface to initial clock synchronization only, at the cost of losing automatic clock correction over time. Additionally, restricting outbound UDP port 123 to trusted NTP servers via firewall or Zephyr's packet filter (where supported) reduces the off-path attacker's ability to inject forged no-response conditions, though an on-path adversary can still drop packets. Disabling the CONFIG_NET_CONFIG_NEED_IPV4 or CONFIG_SNTP subsystem entirely if SNTP is non-essential eliminates the vulnerable code path entirely.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2026-1678 CRITICAL POC
9.4 Mar 05

Buffer overflow in Zephyr RTOS dns_unpack_name() function causing OOB writes. PoC available.

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

Share

CVE-2026-10655 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy