CVE-2026-79977
8.2 HIGHpublic exploit availablePublished 2026-10-23 · Updated 2026-10-26
AI risk analysis
- Summary
- The WireGuard VPN service allows unauthenticated attackers to overwrite a peer's endpoint IP address by sending a malformed transport-data message with a non-matching receiver index, bypassing the usual authentication requirement for endpoint updates.
- Exploitability
- Exploitation is straightforward: an attacker only needs to send a 16-byte UDP datagram to port 51820 with a zeroed reserved field and an arbitrary receiver index, requiring no prior knowledge of legitimate traffic or credentials.
- Blast radius
- An exploited peer may be redirected to an attacker-controlled server, enabling man-in-the-middle attacks on subsequent encrypted traffic, though the attacker cannot decrypt existing sessions without performing a full handshake.
- Detection
- Defenders should monitor for unexpected changes in peer endpoint IP addresses logged by the WireGuard interface (e.g., via `wg show` output or kernel logs), especially when such changes occur without a corresponding handshake completion event.
- Prioritized remediation
- Upgrade to WireGuard Linux kernel module version 0.0.20260106 or later, which fixes the endpoint update logic to require authentication before accepting new peer addresses.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
The WireGuard VPN service in subsys/net/lib/wireguard/wg.c updated the peer endpoint from a message it could not authenticate. In handle_transport_data(), when the 32-bit receiver index of an incoming transport-data message matched no session, the code both scheduled a new handshake and copied the datagram's source address into peer->endpoint with memcpy(&peer->endpoint, peer_addr, sizeof(peer->endpoint)). Because the receiver index is unknown, there is no key with which such a message could be verified, so the address written into peer->endpoint is entirely attacker-supplied. Every other endpoint update in the implementation happens only after authentication — after the Noise handshake in handle_handshake_init(), or after AEAD decryption plus the anti-replay check in wg_process_data_message(). The WireGuard listener is registered with net_udp_register() using no remote address or port filter and defaults to UDP port 51820 (CONFIG_WIREGUARD_PORT), and wg_ctrl_recv() resolves the peer by interface rather than by any cryptographic identity. Any host able to send a UDP datagram to that port can therefore reach the defect off-path, with no need to observe legitimate traffic: a 16-byte datagram carrying the transport-data type, zeroed reserved bytes and an arbitrary receiver index is sufficient. The vulnerable branch runs whenever the peer has neither a valid handshake nor a current keypair — the state at boot and after a session expires. A single spoofed datagram redirects peer->endpoint to an address of the attacker's choosing, and all subsequent handshake initiations, keepalives and encrypted data packets are sent there. The legitimate peer never receives the initiations and so never re-authenticates, and nothing resets the endpoint afterwards, leaving the tunnel persistently unusable on devices whose peer does not initiate handshakes itself. The attacker can also relay the redirected initiations to the real peer to place itself in the path of the tunnel, observing ciphertext and traffic metadata and selectively dropping packets. WireGuard's end-to-end cryptography still prevents decryption or forgery of tunnel content, so the impact is loss of availability plus limited confidentiality, not key compromise. The fix removes the endpoint learning from this path entirely: the stale-session recovery is kept, but the handshake is sent only to an endpoint learnt from an authenticated message, falling back to the configured cfg_endpoint, and the message is dropped when neither is known. CONFIG_WIREGUARD is marked experimental and is not enabled by default.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Weaknesses
CWE-306, CWE-346
Public exploit & PoC references
All references
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2026-85632
- HIGHCVE-2023-32198PoC
- HIGHCVE-2026-100665PoC
- HIGHCVE-2026-102084
- HIGHCVE-2026-102174
- CRITICALCVE-2026-107060PoC
- HIGHCVE-2026-10764
- CRITICALCVE-2026-107938
Related by shared AI tags and CWE weakness class. Browse the full archive.