Skip to main content
EPSS 0.3%top 80%

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

0
Medium
VulnerabilityCVE-2026-10634cvecve-2026-10634gcvecwe-416
Published: 06/15/2026 (06/15/2026, 14:16:43 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

Description

Zephyr's native TCP stack iterates the global connection list in net_tcp_foreach() (subsys/net/ip/tcp.c) using the SYS_SLIST_FOR_EACH_CONTAINER_SAFE macro, which caches a pointer to the next list node. Prior to this fix the function released tcp_lock while invoking the per-connection callback and re-acquired it afterwards. During that window a concurrent tcp_conn_release(), running on the dedicated TCP work-queue thread when a connection's reference count drops to zero (e.g. a remote peer closing or resetting the connection), can remove and k_mem_slab_free() the cached next connection. When the iterator advances it dereferences the freed (and possibly reallocated) slab memory — a use-after-free that can crash the system (denial of service) and, if the slot has been reused, cause the callback to operate on an attacker-influenced object (potential information disclosure or further fault). net_tcp_foreach() is reached in production via the net conn network shell command and via net_tcp_close_all_for_iface() on interface-down; the freeing side is driven by ordinary TCP traffic. The fix moves the connection/context teardown in tcp_conn_release() inside the tcp_lock critical section and keeps tcp_lock held across the callback in net_tcp_foreach(). The defect was introduced with the modern (TCP2) stack in 2020 and affects releases up to and including v4.4.0.

CVSS v3.1

Score 4.8medium

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

Affected software

zephyrproject

zephyr

Affected versions
>=3.6.0 <4.5.0
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=3.6.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:17 UTC

Technical Analysis

The vulnerability in Zephyr's TCP stack occurs because net_tcp_foreach() releases the tcp_lock while invoking a per-connection callback, allowing concurrent tcp_conn_release() to free the next connection object being iterated. This use-after-free can cause system crashes or allow attacker-influenced data to be processed. The fix involves holding tcp_lock throughout the callback and moving connection teardown inside the lock. The flaw affects Zephyr versions up to and including v4.4.0 and was introduced with the TCP2 stack in 2020.

Potential Impact

Exploitation can cause denial of service by crashing the system due to use-after-free memory access. Additionally, if the freed memory is reallocated by an attacker, it may lead to information disclosure or further faults by operating on attacker-controlled data. The vulnerability affects TCP connection handling and can be triggered by normal TCP traffic or network shell commands.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vendor advisory does not specify an official fix or patch availability. Until a patch is released, avoid exposing the affected TCP stack functions to untrusted inputs or environments where exploitation risk is higher.

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:10:50.607Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a3021a40b89be688846b9b4

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

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

Last updated: 09/14/2026, 22:01:31 UTC

Views: 111

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