CVE-2026-144412: GotaTun Oversized UDP Datagram Can Stop Vulnerability

HIGH
Advisory Identifier: GHSA-fc57-wfhg-7c2w
CVSS 7.5
CWE-755
Published
Advisory Summary

CVE-2026-144412 is a HIGH (CVSS 7.5) oversized udp datagram can stop vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting GotaTun libraries in the crates.io ecosystem. The issue involves oversized udp datagram can stop default windows device reception. Remediation is available by upgrading affected packages to version 0.10.0.

CVE-2026-144412 at a Glance

CVE Identifier CVE-2026-144412
GHSA Identifier GHSA-fc57-wfhg-7c2w
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product GotaTun
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-144412

To remediate this vulnerability, upgrade all affected GotaTun dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gotatun fixed: 0.10.0
Upgrade gotatun to 0.10.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for gotatun

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-144412, inspect your project dependencies for GotaTun:

inspect dependencies for gotatun

Analyze the terminal output to locate any version of GotaTun in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In GotaTun, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 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.

CVE-2026-144412 Affected GotaTun Versions

1 component(s)
Fixed Versions:
0.10.0
Product / Package Ecosystem Affected Versions Fixed Version
gotatun
crates.io
< 0.10.0
0.10.0

References

Frequently Asked Questions

What is CVE-2026-144412?
CVE-2026-144412 is a security vulnerability in GotaTun involving Oversized UDP datagram can stop default Windows Device reception under CWE-755: Improper Handling of Exceptional Conditions.
Which GotaTun versions are affected?
Affected versions include releases prior to 0.10.0 across affected packages: gotatun.
What version fixes CVE-2026-144412?
Upgrading to 0.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gotatun affected?
Yes, gotatun is affected in releases prior to 0.10.0. Upgrade your dependency to 0.10.0 or later.
What is the CVSS score of CVE-2026-144412?
CVE-2026-144412 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-144412?
CVE-2026-144412 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check crates.io dependencies for CVE-2026-144412?
Run the dependency tree command: 'inspect dependencies for gotatun'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fc57-wfhg-7c2w",
  "modified" : "2026-12-04T22:09:24Z",
  "published" : "2026-12-04T22:09:24Z",
  "aliases" : [ "CVE-2026-144412" ],
  "summary" : "GotaTun: Oversized UDP datagram can stop default Windows Device reception",
  "details" : "### Summary\n\nAn 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.\n\n### Details\n\nIn 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.\n\nLocked 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.\n\n`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.\n\nThe 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.\n\n### Proposed fix\n\nThe 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.\n\nThe patch changes only `gotatun/src/udp/socket/windows.rs`. Other receive errors continue to propagate as before.\n\n### Patch validation\n\nOn 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.\n\nAn 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.\n\n### Source reference\n\nRepository: `mullvad/gotatun`\nReviewed revision: `3e25b63e197d2754f7ca37d55faf1980e033b80a`\n\n- `gotatun/src/udp/socket/windows.rs:166–176` — Windows receive error\n- `gotatun/src/device/mod.rs:179–197` — Device receiver setup\n- `gotatun/src/packet/pool.rs:20–25` — default buffer size\n- `gotatun/src/udp/mod.rs:84–96` — default batch receive\n- `gotatun/src/udp/buffer.rs:135–147` — producer termination\n- `gotatun/src/udp/buffer.rs:171–178` — closed-channel error\n- `gotatun/src/device/mod.rs:626–639` — receive before verification\n- `gotatun/src/device/mod.rs:752–757` — successful task exit\n- `gotatun/tests/udp_oversized_datagram.rs:24–33` — Windows coverage excluded\n\n<details>\n<summary>Proposed patch</summary>\n\n```diff\ndiff --git a/gotatun/src/udp/socket/windows.rs b/gotatun/src/udp/socket/windows.rs\nindex c031d67..9170003 100644\n--- a/gotatun/src/udp/socket/windows.rs\n+++ b/gotatun/src/udp/socket/windows.rs\n@@ -163,16 +163,32 @@ impl UdpSend for super::UdpSocket {\n     }\n }\n \n+impl super::UdpSocket {\n+    async fn recv_datagram(&self, pool: &mut PacketBufPool) -> io::Result<(Packet, SocketAddr)> {\n+        let mut buf = pool.get();\n+        loop {\n+            match self.socket().recv_from(&mut buf).await {\n+                Ok((n, src)) => {\n+                    buf.truncate(n);\n+                    return Ok((buf, self.map_src(src)));\n+                }\n+                // Winsock discards the remainder of an oversized datagram. The socket\n+                // remains usable; never pass its truncated contents to the protocol.\n+                Err(err) if err.raw_os_error() == Some(WinSock::WSAEMSGSIZE) => {\n+                    tokio::task::yield_now().await;\n+                }\n+                Err(err) => return Err(err),\n+            }\n+        }\n+    }\n+}\n+\n #[cfg(not(feature = \"windows-gro\"))]\n impl UdpRecv for super::UdpSocket {\n     type RecvManyBuf = ();\n \n     async fn recv_from(&mut self, pool: &mut PacketBufPool) -> io::Result<(Packet, SocketAddr)> {\n-        let mut buf = pool.get();\n-        let (n, src) = self.socket().recv_from(&mut buf).await?;\n-        buf.truncate(n);\n-        let src = self.map_src(src);\n-        Ok((buf, src))\n+        self.recv_datagram(pool).await\n     }\n }\n \n@@ -210,11 +226,7 @@ mod gro {\n             &mut self,\n             pool: &mut PacketBufPool,\n         ) -> io::Result<(Packet, SocketAddr)> {\n-            let mut buf = pool.get();\n-            let (n, src) = self.socket().recv_from(&mut buf).await?;\n-            buf.truncate(n);\n-            let src = self.map_src(src);\n-            Ok((buf, src))\n+            self.recv_datagram(pool).await\n         }\n \n         async fn recv_many_from(\n```\n\n</details>\n\n### Proof of concept\n\nA 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.\n\n### Impact\n\nProposed 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "gotatun"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.9.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mullvad/gotatun/security/advisories/GHSA-fc57-wfhg-7c2w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-144412"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mullvad/gotatun/pull/200"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mullvad/gotatun/commit/891e2137bb4b42e50b6af59dfffe51de6494f55c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mullvad/gotatun"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mullvad/gotatun/releases/tag/v0.10.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-755" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-04T22:09:24Z",
    "nvd_published_at" : "2026-12-04T18:17:29Z"
  }
}