CVE-2026-8718
Last modified
CVE-2026-8718 is a high-severity vulnerability rated 8.4/10 on the CVSS scale. tls_opt_dtls_peer_connection_id_value_get() in subsys/net/lib/sockets/sockets_tls.c, which handles getsockopt(SOL_TLS, TLS_DTLS_PEER_CID_VALUE), passed the caller-supplied optval directly to mbedtls_ssl_get_peer_cid() without verifying the buffer was at least MBEDTLS_SSL_CID_OUT_LEN_MAX (default 32) bytes. mbedtls_ssl_get_peer_cid() copies the peer-negotiated DTLS Connection ID (length 1..MBEDTLS_SSL_CID_OUT_LEN_MAX) into that buffer without a destination-size parameter, so a caller-supplied optlen smaller than the CID causes a write of up to 31 bytes past the buffer end. In CONFIG_USERSPACE builds the getsockopt syscall verifier (z_vrfy_zsock_getsockopt) bounce-buffers the user's optval into a kernel allocation of exactly optlen bytes (k_usermode_alloc_from_copy -> z_thread_malloc), so an unprivileged user thread that passes a small optlen on a connected DTLS socket with Connection ID enabled induces a kernel-heap buffer overflow, with the overflowing content being the remote peer's CID. The defect requires CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID, an established DTLS session with a negotiated peer CID, and (for the kernel-crossing case) CONFIG_USERSPACE. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
Description
tls_opt_dtls_peer_connection_id_value_get() in subsys/net/lib/sockets/sockets_tls.c, which handles getsockopt(SOL_TLS, TLS_DTLS_PEER_CID_VALUE), passed the caller-supplied optval directly to mbedtls_ssl_get_peer_cid() without verifying the buffer was at least MBEDTLS_SSL_CID_OUT_LEN_MAX (default 32) bytes. mbedtls_ssl_get_peer_cid() copies the peer-negotiated DTLS Connection ID (length 1..MBEDTLS_SSL_CID_OUT_LEN_MAX) into that buffer without a destination-size parameter, so a caller-supplied optlen smaller than the CID causes a write of up to 31 bytes past the buffer end. In CONFIG_USERSPACE builds the getsockopt syscall verifier (z_vrfy_zsock_getsockopt) bounce-buffers the user's optval into a kernel allocation of exactly optlen bytes (k_usermode_alloc_from_copy -> z_thread_malloc), so an unprivileged user thread that passes a small optlen on a connected DTLS socket with Connection ID enabled induces a kernel-heap buffer overflow, with the overflowing content being the remote peer's CID. The defect requires CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID, an established DTLS session with a negotiated peer CID, and (for the kernel-crossing case) CONFIG_USERSPACE. Introduced when the TLS_DTLS_CID option was added (v3.5.0). The fix rejects callers whose optlen is below MBEDTLS_SSL_CID_OUT_LEN_MAX with -EINVAL.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 3.5.0, < 4.4.1 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-8718?
How severe is CVE-2026-8718?
How do I fix CVE-2026-8718?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-8708The Genzel breadcrumbs plugin for WordPress is vulnerable to…4.3
- CVE-2026-8709An improper privilege management vulnerability in the REST A…9.9
- CVE-2026-8711NGINX JavaScript has a vulnerability when the js_fetch_proxy…9.8
- CVE-2026-8713The Avada (Fusion) Builder plugin for WordPress is vulnerabl…9.1
- CVE-2026-8714A denial-of-service vulnerability exists in the RTSP server …6.5
- CVE-2026-8716GitLab has remediated an issue in GitLab CE/EE affecting all…4.3
- CVE-2026-8719The AI Engine – The Chatbot, AI Framework & MCP for WordPres…8.8
- CVE-2026-8720wc_Blake2bHmacFinal and wc_Blake2sHmacFinal discard the mess…7.5
- CVE-2026-8721Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl trunca…9.8
- CVE-2026-8722Net::Async::Statsd::Client versions through 0.005 for Perl a…6.5
- CVE-2026-8723### Summary `qs.stringify` throws `TypeError` when called…6.3
- CVE-2026-8724A security flaw has been discovered in Dataease 2.10.20. Imp…7.2
Are you affected by CVE-2026-8718?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
