NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🦀
🦀 crates.io
Not in CISA KEV
HIGH severity

GotaTun: Oversized UDP datagram can stop default Windows Device receptionGHSA-fc57-wfhg-7c2w

HIGHFix: mullvad/gotatun#200

GHSA-fc57-wfhg-7c2w is a high-severity (CVSS 7.5) remote code execution vulnerability in gotatun. A fix is available for gotatun — see the affected versions and patch details below.

Also known asCVE-2026-144412
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 5, 2026 · OSV.dev, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.

Exploitation and automatability from CISA’s SSVC triage for GHSA-fc57-wfhg-7c2w.

Real-World Exposure

1 pkg affected
🦀gotatun

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.

Description

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 super::UdpSocket {
     }
 }
 
+impl super::UdpSocket {
+    async fn recv_datagram(&self, pool: &mut PacketBufPool) -> io::Result<(Packet, SocketAddr)> {
+        let mut buf = pool.get();
+        loop {
+            match self.socket().recv_from(&mut buf).await {
+                Ok((n, src)) => {
+                    buf.truncate(n);
+                    return Ok((buf, self.map_src(src)));
+                }
+                // Winsock discards the remainder of an oversized datagram. The socket
+                // remains usable; never pass its truncated contents to the protocol.
+                Err(err) if err.raw_os_error() == Some(WinSock::WSAEMSGSIZE) => {
+                    tokio::task::yield_now().await;
+                }
+                Err(err) => return Err(err),
+            }
+        }
+    }
+}
+
 #[cfg(not(feature = "windows-gro"))]
 impl UdpRecv for super::UdpSocket {
     type RecvManyBuf = ();
 
     async fn recv_from(&mut self, pool: &mut PacketBufPool) -> io::Result<(Packet, SocketAddr)> {
-        let mut buf = pool.get();
-        let (n, src) = self.socket().recv_from(&mut buf).await?;
-        buf.truncate(n);
-        let src = self.map_src(src);
-        Ok((buf, src))
+        self.recv_datagram(pool).await
     }
 }
 
@@ -210,11 +226,7 @@ mod gro {
             &mut self,
             pool: &mut PacketBufPool,
         ) -> io::Result<(Packet, SocketAddr)> {
-            let mut buf = pool.get();
-            let (n, src) = self.socket().recv_from(&mut buf).await?;
-            buf.truncate(n);
-            let src = self.map_src(src);
-            Ok((buf, src))
+            self.recv_datagram(pool).await
         }
 
         async fn recv_many_from(
</details>

Proof of concept

A loopback-only test on native Windows 11 sent an 8192-byte UDP datagram followed by a short marker to a 4096-byte receive buffer. On the unpatched direct path, the first receive returned WSAEMSGSIZE (10040); a second receive still obtained the queued marker. In the buffered path, the producer exited on the first error, and the marker never reached the consumer. With the patch, the first direct receive and buffered consumer received complete markers.

Impact

Proposed High severity: persistent loss of inbound handshakes and data for every peer on the affected Device, conditional on delivery and the source-derived Windows behavior. This is not a claim of process-wide failure, code execution, decryption, or key disclosure. Application-driven rebuilding can restore service. The scope is the library configuration described above; exposure of any particular deployed VPN product has not been established.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🦀crates.iogotatunall versions0.10.0cargo update -p gotatun --precise 0.10.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for gotatun, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update gotatun to 0.10.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-fc57-wfhg-7c2w is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

### 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` receiv
O3 Security · Impact-Aware SCA

Is GHSA-fc57-wfhg-7c2w in your dependencies?

Find it across crates.io, including transitive dependencies.