CVE-2026-5066: Out-of-bounds Write in zephyrproject-rtos Zephyr
CVE-2026-5066 is a medium severity vulnerability in the Zephyr RTOS affecting the TLS socket connect path. It involves an out-of-bounds write and read due to improper validation of the addrlen parameter in memcpy operations within the TLS session cache handling. This can cause memory corruption leading to crashes, denial of service, and potentially arbitrary code execution.
AI Analysis
Technical Summary
The vulnerability exists in the Zephyr RTOS network sockets subsystem, specifically in the TLS socket connect path (subsys/net/lib/sockets/sockets_tls.c). When TLS session caching is enabled, the functions tls_session_store() and tls_session_restore() use memcpy to copy data from a caller-supplied address into a fixed-size buffer. The length parameter (addrlen) is controlled by the caller but is not validated against the destination buffer size. Because struct net_sockaddr is opaque and smaller than possible addrlen values, an attacker can supply an addrlen larger than the buffer size (e.g., 128 bytes into a 24-byte buffer), causing out-of-bounds memory access. This can lead to memory corruption, crashes, denial of service, and potentially arbitrary code execution.
Potential Impact
The vulnerability allows an attacker with local privileges (low complexity, no user interaction) to cause out-of-bounds memory writes and reads in the TLS session cache. This can result in denial of service through crashes and may enable arbitrary code execution. Confidentiality and integrity impacts are limited but present due to potential memory corruption.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider disabling TLS session caching if feasible or restrict access to the affected TLS socket connect functionality to trusted users. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-5066: Out-of-bounds Write in zephyrproject-rtos Zephyr
Description
CVE-2026-5066 is a medium severity vulnerability in the Zephyr RTOS affecting the TLS socket connect path. It involves an out-of-bounds write and read due to improper validation of the addrlen parameter in memcpy operations within the TLS session cache handling. This can cause memory corruption leading to crashes, denial of service, and potentially arbitrary code execution.
CVSS v3.1
Score 6.3medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the Zephyr RTOS network sockets subsystem, specifically in the TLS socket connect path (subsys/net/lib/sockets/sockets_tls.c). When TLS session caching is enabled, the functions tls_session_store() and tls_session_restore() use memcpy to copy data from a caller-supplied address into a fixed-size buffer. The length parameter (addrlen) is controlled by the caller but is not validated against the destination buffer size. Because struct net_sockaddr is opaque and smaller than possible addrlen values, an attacker can supply an addrlen larger than the buffer size (e.g., 128 bytes into a 24-byte buffer), causing out-of-bounds memory access. This can lead to memory corruption, crashes, denial of service, and potentially arbitrary code execution.
Potential Impact
The vulnerability allows an attacker with local privileges (low complexity, no user interaction) to cause out-of-bounds memory writes and reads in the TLS session cache. This can result in denial of service through crashes and may enable arbitrary code execution. Confidentiality and integrity impacts are limited but present due to potential memory corruption.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider disabling TLS session caching if feasible or restrict access to the affected TLS socket connect functionality to trusted users. Monitor vendor channels for updates and apply patches promptly once released.
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: 06/04/2026, 21:03:37 UTC
Last enriched: 06/12/2026, 10:30:55 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 78
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.