Every CVESearch/Get API key

CVE-2026-144412

GotaTun: Oversized UDP datagram can stop default Windows Device reception (crates.io)

Explain with AI
ChatGPTClaudeGoogle AI
Severity
7.5High
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
Proof of concept
CISA reports one, no source links it
Exploit chance
Unknown
No source reports an EPSS score yet.
Listed fix
0.10.0 for gotatun
From GitHub Advisories

Overview

GotaTun is a userspace WireGuard implementation in Rust. Prior to 0.10.0, an unauthenticated sender can deliver a UDP datagram larger than the default 4096-byte PacketBufPool to a Windows Device using the built-in non-windows-gro transport. In gotatun/src/device/mod.rs, Connection::set_up passes that pool to BufferedUdpReceive, and gotatun/src/udp/socket/windows.rs propagates the resulting WSAEMSGSIZE receive error. The producer task exits, the channel closes after queued packets drain, and DeviceState::handle_incoming returns successfully without recording a fatal error or restarting reception, stopping inbound handshakes and data for all peers. Source inspection indicates that reception remains stopped until the application rebuilds the connection, although recovery by rebuilding was not tested. This issue is fixed in version 0.10.0.

CVSS 3.1 vector

Exploitability

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

Impact

Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Discussion

14 days ago: 0 people13 days ago: 0 people12 days ago: 0 people11 days ago: 0 people10 days ago: 0 people9 days ago: 0 people8 days ago: 0 people7 days ago: 0 people6 days ago: 0 people5 days ago: 0 people4 days ago: 0 people3 days ago: 0 people2 days ago: 0 people1 day ago: 0 peopleLast 24 hours: 1 person

Affected

Packages 1

Affected packages
PackageAffectedFixed
gotatun
crates.io
through 0.9.2
0.10.0

Products 1

Sources

CVE List Score usedCVSS 3.17.5

GotaTun: Oversized UDP datagram can stop default Windows Device reception

GotaTun is a userspace WireGuard implementation in Rust. Prior to 0.10.0, an unauthenticated sender can deliver a UDP datagram larger than the default 4096-byte PacketBufPool to a Windows Device using the built-in non-windows-gro transport. In gotatun/src/device/mod.rs, Connection::set_up passes that pool to BufferedUdpReceive, and gotatun/src/udp/socket/windows.rs propagates the resulting WSAEMSGSIZE receive error. The producer task exits, the channel closes after queued packets drain, and DeviceState::handle_incoming returns successfully without recording a fatal error or restarting reception, stopping inbound handshakes and data for all peers. Source inspection indicates that reception remains stopped until the application rebuilds the connection, although recovery by rebuilding was not tested. This issue is fixed in version 0.10.0.

Record
CVE-2026-144412
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-755
Updated
2026-12-04
EUVDEUVD-2026-144506CVSS 3.17.5

GotaTun is a userspace WireGuard implementation in Rust. Prior to 0.10.0, an unauthenticated sender can deliver a UDP datagram larger than the default 4096-byte PacketBufPool to a Windows Device using the built-in non-windows-gro transport. In gotatun/src/device/mod.rs, Connection::set_up passes that pool to BufferedUdpReceive, and gotatun/src/udp/socket/windows.rs propagates the resulting WSAEMSGSIZE receive error. The producer task exits, the channel closes after queued packets drain, and DeviceState::handle_incoming returns successfully without recording a fatal error or restarting reception, stopping inbound handshakes and data for all peers. Source inspection indicates that reception remains stopped until the application rebuilds the connection, although recovery by rebuilding was not tested. This issue is fixed in version 0.10.0.

Record
EUVD-2026-144506
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-12-04
GitHub AdvisoriesGHSA-fc57-wfhg-7c2wCVSS 3.17.5

GotaTun: Oversized UDP datagram can stop default Windows Device reception

Summary

An unauthenticated sender able to deliver a UDP datagram larger than 4096 bytes to a Windows Device using the built-in transport without windows-gro can stop inbound processing for all peers on that Device. Source inspection indicates that the outage lasts until the application rebuilds the connection. A native Windows loopback test reproduced the receive error.

Details

In GotaTun 0.9.2, Connection::set_up in gotatun/src/device/mod.rs passes the default 4096-byte PacketBufPool to BufferedUdpReceive. The non-GRO receiver in gotatun/src/udp/socket/windows.rs receives directly into that buffer.

Locked Mio 1.1.1 documents WSAEMSGSIZE when a Windows datagram exceeds the receive buffer, and its source preserves the error. Locked Tokio 1.50.0 retries WouldBlock but propagates other errors. GotaTun's default UdpRecv::recv_many_from propagates this error to BufferedUdpReceive::new in gotatun/src/udp/buffer.rs, which returns from its producer task. Once queued packets drain, the closed channel becomes a consumer error.

DeviceState::handle_incoming ends its receive loop and returns Ok(()), before the offending input reaches packet verification. That successful exit bypasses fatal-error registration and does not restart reception.

The optional windows-gro Device path uses a 65535-byte batch buffer. Linux uses a different receive implementation. Network filtering can prevent delivery. The affected production paths are unchanged between the v0.9.2 tag and the reviewed revision. Earlier affected versions and a fixed release have not been established.

Proposed fix

The proposed patch is included below for private review. It discards datagrams that produce WSAEMSGSIZE and continues receiving, yielding between retries. Both direct Windows receive methods share this handling. The existing receive-buffer size and source-address mapping are preserved; the optional GRO batch path is unchanged.

The patch changes only gotatun/src/udp/socket/windows.rs. Other receive errors continue to propagate as before.

Patch validation

On Windows, an oversized UDP datagram can make the first receive call return WSAEMSGSIZE (10040). The socket remains usable, but the buffered receive worker exits on that error, interrupting packet delivery to its consumer. Native Windows 11 loopback tests reproduced this behavior and confirmed that the patch allows the next packet to be received.

An additional test on native Windows 11 exercised two peered GotaTun Devices with real loopback UDP sockets and in-process TUN channels. Baseline traffic succeeded in both builds. After a single 8192-byte datagram was sent to one Device’s UDP port, the unpatched build failed to deliver a subsequent packet to that Device within five seconds. With only the Windows receive patch applied, traffic continued in both directions. This covers the Device data path; a VPN product and recovery by rebuilding the Device were not tested.

Source reference

Repository: mullvad/gotatun Reviewed revision: 3e25b63e197d2754f7ca37d55faf1980e033b80a

  • gotatun/src/udp/socket/windows.rs:166–176 — Windows receive error
  • gotatun/src/device/mod.rs:179–197 — Device receiver setup
  • gotatun/src/packet/pool.rs:20–25 — default buffer size
  • gotatun/src/udp/mod.rs:84–96 — default batch receive
  • gotatun/src/udp/buffer.rs:135–147 — producer termination
  • gotatun/src/udp/buffer.rs:171–178 — closed-channel error
  • gotatun/src/device/mod.rs:626–639 — receive before verification
  • gotatun/src/device/mod.rs:752–757 — successful task exit
  • gotatun/tests/udp_oversized_datagram.rs:24–33 — Windows coverage excluded

<details> <summary>Proposed patch</summary>

diff --git a/gotatun/src/udp/socket/windows.rs b/gotatun/src/udp/socket/windows.rs
index c031d67..9170003 100644
--- a/gotatun/src/udp/socket/windows.rs
+++ b/gotatun/src/udp/socket/windows.rs
@@ -163,16 +163,32 @@ impl UdpSend for…
Record
GHSA-fc57-wfhg-7c2w
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-755
Updated
2026-12-04
NVDCVSS 3.17.5

GotaTun is a userspace WireGuard implementation in Rust. Prior to 0.10.0, an unauthenticated sender can deliver a UDP datagram larger than the default 4096-byte PacketBufPool to a Windows Device using the built-in non-windows-gro transport. In gotatun/src/device/mod.rs, Connection::set_up passes that pool to BufferedUdpReceive, and gotatun/src/udp/socket/windows.rs propagates the resulting WSAEMSGSIZE receive error. The producer task exits, the channel closes after queued packets drain, and DeviceState::handle_incoming returns successfully without recording a fatal error or restarting reception, stopping inbound handshakes and data for all peers. Source inspection indicates that reception remains stopped until the application rebuilds the connection, although recovery by rebuilding was not tested. This issue is fixed in version 0.10.0.

Record
CVE-2026-144412
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-755
Updated
2026-12-04
OSVCVSS 3.17.5

GotaTun: Oversized UDP datagram can stop default Windows Device reception

GotaTun is a userspace WireGuard implementation in Rust. Prior to 0.10.0, an unauthenticated sender can deliver a UDP datagram larger than the default 4096-byte PacketBufPool to a Windows Device using the built-in non-windows-gro transport. In gotatun/src/device/mod.rs, Connection::set_up passes that pool to BufferedUdpReceive, and gotatun/src/udp/socket/windows.rs propagates the resulting WSAEMSGSIZE receive error. The producer task exits, the channel closes after queued packets drain, and DeviceState::handle_incoming returns successfully without recording a fatal error or restarting reception, stopping inbound handshakes and data for all peers. Source inspection indicates that reception remains stopped until the application rebuilds the connection, although recovery by rebuilding was not tested. This issue is fixed in version 0.10.0.

Record
CVE-2026-144412
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-755
Updated
2026-12-04

The JSON record also has the rest of 1 source description.

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Affected packages, key facts, referencesGitHub Advisories
Other IDs, referencesOSV
Other IDs, published dateEUVD, NVD
Key facts, referencesCVE List
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open