CVE-2026-5066: Out-of-bounds Write in zephyrproject-rtos Zephyr
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.
AI Analysis
Technical Summary
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.
CVE-2026-5066: Out-of-bounds Write in zephyrproject-rtos 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
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.