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…

CVE-2026-5066: Out-of-bounds Write in zephyrproject-rtos Zephyr

0
Medium
VulnerabilityCVE-2026-5066cvecve-2026-5066
Published: Thu Jun 04 2026 (06/04/2026, 20:31:25 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject-rtos
Product: Zephyr

Description

CVE-2026-5066 is an out-of-bounds write and read vulnerability in the TLS socket connect path of the Zephyr RTOS network sockets subsystem. It occurs when the TLS session cache is enabled and the functions tls_session_store() and tls_session_restore() use memcpy with a caller-controlled length without validating it against the fixed buffer size. This can cause memory corruption by writing beyond the intended buffer, potentially leading to a crash, denial of service, or arbitrary code execution.

CVSS v3.1

Score 6.3medium

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/04/2026, 21:19:32 UTC

Technical Analysis

This vulnerability arises from improper bounds checking in the TLS session cache handling within Zephyr's network sockets subsystem. Specifically, the memcpy operations in tls_session_store() and tls_session_restore() use the caller-supplied addrlen to copy data into a fixed-size buffer without verifying that addrlen does not exceed the buffer size. Because struct net_sockaddr is opaque and applications can supply an addrlen larger than the buffer (e.g., 128 bytes into a 24-byte buffer), this leads to out-of-bounds memory access. The flaw can cause memory corruption, resulting in crashes or potentially arbitrary code execution.

Potential Impact

Exploitation of this vulnerability can cause a denial of service due to crashes from out-of-bounds memory writes. Additionally, it may allow an attacker to execute arbitrary code by corrupting memory. The CVSS score of 6.3 reflects a medium severity with network attack vector, low attack complexity, and requiring low privileges without user interaction.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is currently documented. Users should monitor Zephyr project advisories for updates and consider disabling TLS session caching if feasible until a fix is available.

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-03-27T22:19:50.768Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a21e829e29bf47b50d078e8

Added to database: 6/4/2026, 9:03:37 PM

Last enriched: 6/4/2026, 9:19:32 PM

Last updated: 6/4/2026, 10:38:49 PM

Views: 5

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