Skip to contentSkip to conversation

CVE-2026-46207: vsock/virtio: fix empty payload in tap skb for non-linear buffers

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

vsock/virtio: fix empty payload in tap skb for non-linear buffers

For non-linear skbs, virtio_transport_build_skb() goes through virtio_transport_copy_nonlinear_skb() to copy the original payload in the new skb to be delivered to the vsockmon tap device. This manually initializes an iov_iter but does not set iov_iter.count. Since the iov_iter is zero-initialized, the copy length is zero and no payload is actually copied to the monitor interface, leaving data un-initialized.

Fix this by removing the linear vs non-linear split and using skb_copy_datagram_iter() with iov_iter_kvec() for all cases, as vhost-vsock already does. This handles both linear and non-linear skbs, properly initializes the iov_iter, and removes the now unused virtio_transport_copy_nonlinear_skb().

While touching this code, let's also check the return value of skb_copy_datagram_iter(), even though it's unlikely to fail.

The Linux kernel CVE team has assigned CVE-2026-46207 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.7 with commit 4b0bf10eb077cb43c09746251ef3608d62c45667 and fixed in 6.12.90 with commit 06747f52ab157591cec7e5623a759473b66ef6f6
	Issue introduced in 6.7 with commit 4b0bf10eb077cb43c09746251ef3608d62c45667 and fixed in 6.18.32 with commit 52da6a74ca3de0fcda60301096b71534b3b18641
	Issue introduced in 6.7 with commit 4b0bf10eb077cb43c09746251ef3608d62c45667 and fixed in 7.0.9 with commit 378b131a25bd1a5ee27ca199fe486c299d5350c5
	Issue introduced in 6.7 with commit 4b0bf10eb077cb43c09746251ef3608d62c45667 and fixed in 7.1-rc4 with commit 3a3e3d90cbc79600544536723911657730759af3

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-46207

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/06747f52ab157591cec7e5623a759473b66ef6f6
	https://git.kernel.org/stable/c/52da6a74ca3de0fcda60301096b71534b3b18641
	https://git.kernel.org/stable/c/378b131a25bd1a5ee27ca199fe486c299d5350c5
	https://git.kernel.org/stable/c/3a3e3d90cbc79600544536723911657730759af3