Memory corruption via oversized TLS address copy
Published Jun 4, 2026 · Updated Jun 4, 2026
Out-of-bounds write in Zephyr RTOS 4.3 and earlier allows attackers to corrupt memory via an oversized TLS socket address length. tls_session_store() and tls_session_restore() copy caller-sized address data into a fixed-size net_sockaddr object without validating addrlen. Reachability requires TLS session caching and application control of addrlen; the demonstrated result is a device crash, while code execution is unproven.
Summary
What happened
Out-of-bounds write in Zephyr RTOS 4.3 and earlier allows attackers to corrupt memory via an oversized TLS socket address length. tls_session_store() and tls_session_restore() copy caller-sized address data into a fixed-size net_sockaddr object without validating addrlen. Reachability requires TLS session caching and application control of addrlen; the demonstrated result is a device crash, while code execution is unproven.
The record
- CVE
- CVE-2026-5066
- Published
- Jun 4, 2026
- Updated
- Jun 4, 2026
- Vendor
- Zephyr Project
- Product
- Zephyr RTOS
- Classifications
- CWE-787
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 4, 2026CVE publishedPublication date reported by the CVE source.
- Jun 4, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=* <=4.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Zephyr oversized addrlen proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo