CVE-2026-63970: vsock/virtio: bind uarg before filling zerocopy skb
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
vsock/virtio: bind uarg before filling zerocopy skb
virtio_transport_send_pkt_info() allocates or reuses the zerocopy uarg before entering the send loop, but virtio_transport_alloc_skb() still fills the skb before it inherits that uarg. When fixed-buffer vectored zerocopy hits MAX_SKB_FRAGS, io_sg_from_iter() may partially attach managed frags and return -EMSGSIZE. The rollback path call kfree_skb() to free an skb that carries SKBFL_MANAGED_FRAG_REFS but no uarg, so skb_release_data() falls through to ordinary frag unref.
Pass the uarg into virtio_transport_alloc_skb() and bind it immediately before virtio_transport_fill_skb(). This keeps control or no-payload skbs untouched while ensuring success and rollback share one lifetime rule.
The Linux kernel CVE team has assigned CVE-2026-63970 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 6.18.35 with commit b62e2b2b4a50953ca952f3cd3f77dd62dc50fd5d Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 7.0.12 with commit 5d317573f1d48e76cce5fb6250452b6e4102e0fb Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 7.1 with commit 1e584c304cfb94a759417130b1fc6d30b30c4cce
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-63970
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/b62e2b2b4a50953ca952f3cd3f77dd62dc50fd5d https://git.kernel.org/stable/c/5d317573f1d48e76cce5fb6250452b6e4102e0fb https://git.kernel.org/stable/c/1e584c304cfb94a759417130b1fc6d30b30c4cce