CVE-2026-8718: bounds in zephyrproject zephyr
CVE-2026-8718 is a high-severity vulnerability in Zephyr project versions 3.5.0 through before 4.4.1. It involves a kernel-heap buffer overflow triggered by improper bounds checking in the DTLS Connection ID retrieval via getsockopt. The flaw occurs when a caller supplies a buffer smaller than the expected size, causing an overflow of up to 31 bytes with data from the remote peer's Connection ID. This requires specific configuration options and an established DTLS session with a negotiated peer CID.
AI Analysis
Technical Summary
The vulnerability exists in the function tls_opt_dtls_peer_connection_id_value_get() in Zephyr's sockets_tls.c, which handles getsockopt(SOL_TLS, TLS_DTLS_PEER_CID_VALUE). The function passes the caller-supplied buffer directly to mbedtls_ssl_get_peer_cid() without verifying that the buffer is at least MBEDTLS_SSL_CID_OUT_LEN_MAX (default 32 bytes). Since mbedtls_ssl_get_peer_cid() copies the peer's DTLS Connection ID into the buffer without a size parameter, a smaller buffer causes a write overflow of up to 31 bytes past the buffer end. In CONFIG_USERSPACE builds, the syscall verifier allocates exactly optlen bytes in kernel space, so an unprivileged user can cause a kernel-heap buffer overflow by passing a small optlen on a connected DTLS socket with Connection ID enabled. The vulnerability was introduced in version 3.5.0 when the TLS_DTLS_CID option was added. The fix implemented rejects calls with optlen smaller than MBEDTLS_SSL_CID_OUT_LEN_MAX with an error code -EINVAL.
Potential Impact
An unprivileged user thread can trigger a kernel-heap buffer overflow by passing a small optlen value on a connected DTLS socket with Connection ID enabled. This overflow writes up to 31 bytes past the allocated buffer in kernel space, potentially leading to kernel memory corruption. The vulnerability has no confidentiality impact but can cause high integrity and availability impact due to kernel memory corruption. Exploitation requires specific kernel configuration (CONFIG_USERSPACE), the DTLS Connection ID feature enabled (CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID), and an established DTLS session with a negotiated peer CID.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix rejects calls with optlen smaller than MBEDTLS_SSL_CID_OUT_LEN_MAX, returning -EINVAL. Until an official fix is confirmed, avoid enabling CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID or restrict unprivileged user access to DTLS sockets. Monitor vendor channels for patch releases and apply updates promptly once available.
CVE-2026-8718: bounds in zephyrproject zephyr
Description
CVE-2026-8718 is a high-severity vulnerability in Zephyr project versions 3.5.0 through before 4.4.1. It involves a kernel-heap buffer overflow triggered by improper bounds checking in the DTLS Connection ID retrieval via getsockopt. The flaw occurs when a caller supplies a buffer smaller than the expected size, causing an overflow of up to 31 bytes with data from the remote peer's Connection ID. This requires specific configuration options and an established DTLS session with a negotiated peer CID.
CVSS v3.1
Score 8.4high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the function tls_opt_dtls_peer_connection_id_value_get() in Zephyr's sockets_tls.c, which handles getsockopt(SOL_TLS, TLS_DTLS_PEER_CID_VALUE). The function passes the caller-supplied buffer directly to mbedtls_ssl_get_peer_cid() without verifying that the buffer is at least MBEDTLS_SSL_CID_OUT_LEN_MAX (default 32 bytes). Since mbedtls_ssl_get_peer_cid() copies the peer's DTLS Connection ID into the buffer without a size parameter, a smaller buffer causes a write overflow of up to 31 bytes past the buffer end. In CONFIG_USERSPACE builds, the syscall verifier allocates exactly optlen bytes in kernel space, so an unprivileged user can cause a kernel-heap buffer overflow by passing a small optlen on a connected DTLS socket with Connection ID enabled. The vulnerability was introduced in version 3.5.0 when the TLS_DTLS_CID option was added. The fix implemented rejects calls with optlen smaller than MBEDTLS_SSL_CID_OUT_LEN_MAX with an error code -EINVAL.
Potential Impact
An unprivileged user thread can trigger a kernel-heap buffer overflow by passing a small optlen value on a connected DTLS socket with Connection ID enabled. This overflow writes up to 31 bytes past the allocated buffer in kernel space, potentially leading to kernel memory corruption. The vulnerability has no confidentiality impact but can cause high integrity and availability impact due to kernel memory corruption. Exploitation requires specific kernel configuration (CONFIG_USERSPACE), the DTLS Connection ID feature enabled (CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID), and an established DTLS session with a negotiated peer CID.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix rejects calls with optlen smaller than MBEDTLS_SSL_CID_OUT_LEN_MAX, returning -EINVAL. Until an official fix is confirmed, avoid enabling CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID or restrict unprivileged user access to DTLS sockets. Monitor vendor channels for patch releases and apply updates promptly once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-05-15T21:27:25.564Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7a572dbf8831d539b121f0
Added to database: 08/10/2026, 22:56:45 UTC
Last enriched: 08/10/2026, 23:11:10 UTC
Last updated: 08/10/2026, 23:11:10 UTC
Views: 4
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.
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.