CVE-2026-10665: Heap buffer overflow on WireGuard receive path via unbounded incoming packet length

Published Jul 12, 2026
·
Updated

In Zephyr's WireGuard subsystem (subsys/net/lib/wireguard), wgprocessdatamessage() in wgcrypto.c linearizes an inbound transport-data payload into a fixed pool buffer of CONFIGWIREGUARDBUFLEN bytes before decryption. The call netbuflinearize(buf->data, datalen, pkt->buffer, ..., datalen) passed the attacker-derived datalen as both the destination capacity and the copy length, defeating the function's internal len = min(len, dstlen) bound. datalen is derived from the received UDP datagram length and is only lower-bounded by wgctrlrecv() (no upper bound). When datalen exceeds CONFIGWIREGUARDBUFLEN — e.g. when the buffer length is lowered below the link MTU, on links with MTU above the buffer size, or via reassembled IPv4/IPv6 fragments that exceed it — the underlying memcpy writes past the end of the pool buffer, an out-of-bounds write (CWE-787). The overflow occurs before the Poly1305 authentication check, so it requires only a valid receiver session index rather than a valid authenticator, and is reachable by a malicious or compromised peer (or an on-path attacker driving an established session) over the network, yielding remote memory corruption and at minimum a reliable denial of service. The defect was present in the WireGuard implementation shipped in Zephyr 4.4.0. The fix adds an explicit datalen > CONFIGWIREGUARDBUFLEN rejection and corrects the linearize call to pass netbufmaxlen(buf) as the destination capacity.

Affected Software

4 affected components
Zephyr Project Zephyr=4.4.0
zephyrproject zephyr=4.4.0-rc1
zephyrproject zephyr=4.4.0-rc2
zephyrproject zephyr=4.4.0-rc3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Zephyr WireGuard (subsys/net/lib/wireguard) to a version that resolves this vulnerability.

    Fixed in 4.4.0
  2. Configuration

    Ensure CONFIG_WIREGUARD_BUF_LEN is large enough for the maximum inbound transport-data payload length; the fix rejects data_len > CONFIG_WIREGUARD_BUF_LEN and prevents the linearize copy from using attacker-controlled length.

    Zephyr WireGuard CONFIG_WIREGUARD_BUF_LEN = (no explicit new value provided)
  3. Compensating control

    If possible, reduce the maximum UDP payload that can be delivered to WireGuard peers (e.g., by constraining link/MSS/MTU so reassembly/fragmentation cannot produce transport-data payloads larger than CONFIG_WIREGUARD_BUF_LEN).

Event History

Jul 12, 2026
CVE Published
via MITRE·04:16 PM
Data Sourced
via MITRE·04:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-10665?

The severity of CVE-2026-10665 is classified as high with a score of 7.4.

2

What type of vulnerability is CVE-2026-10665?

CVE-2026-10665 is a heap buffer overflow vulnerability that occurs in the WireGuard receive path.

3

How does CVE-2026-10665 affect the Zephyr Project?

CVE-2026-10665 could lead to potential remote code execution due to improper handling of unbounded incoming packet lengths in the WireGuard subsystem.

4

How do I fix CVE-2026-10665?

To mitigate CVE-2026-10665, ensure that you are using the latest version of the Zephyr Project that includes the patch for this vulnerability.

5

What should I do if I am using a vulnerable version related to CVE-2026-10665?

If you are using a vulnerable version of the Zephyr Project, you should immediately update to a patched version to prevent exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203