CVE-2026-144412: GotaTun Oversized UDP Datagram Can Stop Vulnerability
HIGHCVE-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
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).
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.
Upgrade gotatun to 0.10.0
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
CVE-2026-144412 Affected GotaTun Versions
1 component(s)| 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?
Which GotaTun versions are affected?
What version fixes CVE-2026-144412?
Is gotatun affected?
What is the CVSS score of CVE-2026-144412?
What CWE is associated with CVE-2026-144412?
How can I check crates.io dependencies for CVE-2026-144412?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}