Vsock-net removes the TCP/IP stack from confidential VMs by proxying network traffic over an optimized virtio-vsock path, cutting the trusted codebase by more than 10× while matching or beating the throughput of a full in-guest stack.
Going deeper
Imagine a secure office where every letter must be read, sealed, and posted by the staff inside. The mailroom is huge—80 000 rules for sorting, stamping, and routing. Any mistake in those rules lets an outsider walk in. What if the office simply handed every sealed envelope to a trusted courier at the window and let the courier use the public post office outside?
That is what Vsock-net does. A confidential virtual machine normally runs its own full postal system—Linux's TCP/IP stack—inside its protected walls. Vsock-net replaces it with a tiny pass-through window (about 5 000 rules instead of 80 000) and lets the host machine outside handle the actual mailing. The key insight is that the courier never opens the sealed envelopes, so your secrets stay safe.
The authors also found that someone else's earlier attempt to secure the big mailroom had a flaw: a header written on the outside of an envelope could be swapped while the staff were still reading it. By removing the mailroom entirely, Vsock-net makes that attack impossible. The catch: when many offices share the same building and the courier gets busy, deliveries slow down.
The abstract, word for word, with the six densest phrases unpacked.
Confidential Virtual Machines (CVMs) are increasingly deployed to secure proprietary workloads and data in multi-tenant cloud environments. However, the Trusted Computing Base (TCB) of CVMs includes a complex and potentially buggy kernel network stack, in which any vulnerability can compromise their security guarantees. We present Vsock-net, a paravirtualized network delegation architecture for Linux-based CVMs that leverages the virtio-vsock device to transparently proxy guest network traffic to the host1, completely eliminating the TCP/IP stack from the guest TCB2. Vsock-net optimizes the network data path to reduce the performance overhead typically associated with network delegation3, while enhancing virtio-vsock to meet the demands of cloud workloads. The evaluation of our Linux Vsock-net prototype on KVM demonstrates that it significantly outperforms state-of-the-art virtio-vsock-based network delegation4. Furthermore, we show that reducing TCB for security does not compromise efficiency: Vsock-net can outperform de facto virtio-net configurations that rely on a full in-guest Linux TCP/IP stack5. In addition, our virtio-vsock optimizations substantially improve performance over mainline virtio-vsock6, which can benefit other systems built on virtio-vsock.
Two lines of prior work converge at Vsock-net: securing CVM I/O and delegating network stacks out of VMs.
Read five parts, in this order.
Skip Section 7 if you know the network-delegation literature. Skip Section 6 if you do not need kTLS, migration, or QUIC compatibility.
If the gains are smaller than reported or the design has a hidden cost, look here first.
Vsock-net’s performance regression at 8 CVMs is caused by eBPF sockmap redirection under high CPU pressure. For each packet redirection, the verdict program does not complete transmission to the peer socket synchronously. Instead, it enqueues a workqueue item that a worker later consumes, which invokes skb_send_sock() on the peer socket. We use bpftrace (Robertson, 2026) to attach kprobes (Keniston et al., 2026) at the workqueue enqueue and execution points and measure the latency between item enqueue and worker execution on a CPU. The median latency falls in the [8,16)μ s bucket. However, 23% of workqueue items wait longer than 64 μ s and 9% wait longer than 256 μ s, with the maximum extending to 4096 μ s. Each end-to-end Memcached request traverses this scheduling step twice, once in each direction, so this latency directly inflates request latency. The long tail of the workqueue scheduling-delay distribution shows that, when host CPU resources become constrained, eBPF sockmap redirection may be delayed by workqueue scheduling. This limitation could be addressed by incorporating a hybrid-polling approach, like virtio-net. We leave the optimization as future work.
The resulting latency of Vsock-net remains 18.14% higher than that of virtio-net. Sockmap leverages the Linux workqueue mechanism to perform packet forwarding asynchronously. Specifically, sockmap submits forwarding operations as work items to a designated workqueue. Later, for each work item, the kernel schedules a worker thread to process it, which then executes the corresponding forwarding request. For the TCP round-trip operation in TCP_RR, sockmap submits two forwarding requests to the workqueue: one for CVM-to-host, and the other for host-to-CVM. The scheduling artifacts involved in sockmap’s socket forwarding process lead to higher latency in Vsock-net than in virtio-net, which employs a hybrid event-driven and polling approach, resulting in lower latency.
Limitations. Our threat model assumes that the components Vsock-net relies on are correct. This assumption is easier to defend for about 5K LoC than for a TCP/IP stack of more than 80K LoC, but it is not guaranteed: CVE-2024-50264 (cve, 2024), for example, is a use-after-free in the virtio-vsock transport. In addition, removing the TCP/IP stack removes netfilter, and Vsock-net does not yet offer tenants a way to restrict which guest ports accept connections; adding a port allowlist at the guest vsock socket layer is future work.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all