CVE-2026-10655: Use-after-free race in SNTP async client when closing the socket while the socket service is still polling it

Published Jun 30, 2026
·
Updated

The asynchronous SNTP client in Zephyr (subsys/net/lib/sntp/sntp.c, sntpcloseasync) 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 zvfspoll, which (in zsockpollpreparectx) registers a kpollevent pointing into the socket's netcontext (&ctx->recvq) and then blocks in kpoll without holding a reference or lock. netcontext objects are allocated from a fixed pool (contexts[CONFIGNETMAXCONTEXTS]) and reused after close.

When sntpcloseasync is invoked from a different thread than the poll thread (in the in-tree consumer subsys/net/lib/config/initclocksntp.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 netcontext 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 NETCONFIGSNTPINITRESYNC). 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 netsocketserviceclose (NETSOCKETSERVICECLOSESOCKETS), so the same thread that polls performs the close, eliminating the race. Affected releases: v4.2.0 through v4.4.0.

Affected Software

2 affected components
Zephyr>=4.2.0<=4.4.0
zephyrproject zephyr>=4.2.0<=4.4.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Zephyr asynchronous SNTP client (subsys/net/lib/sntp/sntp.c) to a version that resolves this vulnerability.

    Fixed in v4.2.0 through v4.4.0
  2. Configuration

    Apply the fix so SNTP socket closure is deferred to the socket service thread by using net_socket_service_close (NET_SOCKET_SERVICE_CLOSE_SOCKETS), ensuring the same thread that polls performs the close and eliminating the close-vs-poll race in sntp_close_async.

    Zephyr net_socket_service NET_SOCKET_SERVICE_CLOSE_SOCKETS = enabled/used

Event History

Jun 30, 2026
CVE Published
via MITRE·04:33 PM
Data Sourced
via MITRE·04:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-10655?

CVE-2026-10655 has a medium severity rating of 6.5.

2

How does CVE-2026-10655 impact the SNTP client in Zephyr?

CVE-2026-10655 can lead to a use-after-free condition when the SNTP asynchronous client closes the socket without proper synchronization.

3

Is there a fix available for CVE-2026-10655?

Yes, the recommended fix involves synchronizing the socket closure with the socket-service polling thread.

4

What type of vulnerability is CVE-2026-10655 classified as?

CVE-2026-10655 is classified as a use-after-free vulnerability.

5

Which software is affected by CVE-2026-10655?

CVE-2026-10655 affects the Zephyr operating system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203