CVE-2026-53365: vsock/virtio: fix zerocopy completion for multi-skb sends
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
vsock/virtio: fix zerocopy completion for multi-skb sends
When a large message is fragmented into multiple skbs, the zerocopy uarg is only allocated and attached to the last skb in the loop. Non-final skbs carry pinned user pages with no completion tracking, so the kernel has no way to notify userspace when those pages are safe to reuse. If the loop breaks early the uarg is never allocated at all, leaking pinned pages with no completion notification.
Fix this by following the approach used by TCP: allocate the zerocopy uarg (if not provided by the caller) before the send loop and attach it to every skb via skb_zcopy_set(), which takes a reference per skb. Each skb's completion properly decrements the refcount, and the notification only fires after the last skb is freed.
On failure, if no data was sent, the uarg is cleanly aborted via net_zcopy_put_abort().
This issue was initially discovered by sashiko while reviewing commit 1cb36e252211 ("vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting") but was pre-existing.
The Linux kernel CVE team has assigned CVE-2026-53365 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 6.18.34 with commit 76b995bc57bd90cb6e954e1966fbd8786da47f0d Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 7.0.11 with commit b3155f2b78db21e99256bcf7eb902f24ff6d5338 Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 7.1 with commit ae38d9179190a956e2a87a69ef1dd6f451b51c4d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53365
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/vmw_vsock/virtio_transport_common.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/76b995bc57bd90cb6e954e1966fbd8786da47f0d https://git.kernel.org/stable/c/b3155f2b78db21e99256bcf7eb902f24ff6d5338 https://git.kernel.org/stable/c/ae38d9179190a956e2a87a69ef1dd6f451b51c4d