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…
EPSS 0.3%top 76%

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

0
Medium
VulnerabilityCVE-2026-5066cvecve-2026-5066
Published: 06/04/2026 (06/04/2026, 20:31:25 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject-rtos
Product: 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

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/12/2026, 10:30:55 UTC

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.

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: 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 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