Skip to contentSkip to conversation

CVE-2026-99062: vsock/virtio: account only unread bytes in read_skb()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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: account only unread bytes in read_skb()

After a partial stream receive, rx_bytes tracks the unread suffix while buf_used and peer credit still cover the whole packet. virtio_transport_read_skb() dequeues that packet but passes pkt_len for both counters, underflowing rx_bytes.

On a connected CID_LOCAL stream with an SK_SKB verdict, a 40-byte read from a 100-byte packet made SIOCINQ report -40, an empty recv return ELOOP, and poll report the empty socket readable. After verdict detach, receiving 40 bytes wrapped the counter to zero and hid those queued bytes until one more byte arrived. The fixed run kept the counter balanced and exposed all queued data immediately.

This was found during an LLM-assisted manual source audit of VSOCK receive accounting while re-evaluating virtio_transport_read_skb() after CVE-2024-50169.

Subtract only skb->len minus the VSOCK offset from rx_bytes. Retain the full packet length for buf_used and peer credit.

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

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

	Issue introduced in 6.12.34 with commit 7893a41deaf28b53036d4ea7cd9f7d54e8874dfc and fixed in 6.12.113 with commit e4a0028b0d54b2c45e1dc8c0dd95fe3e9236f55b
	Issue introduced in 6.16 with commit 45ca7e9f0730ae36fc610e675b990e9cc9ca0714 and fixed in 6.18.57 with commit 38bad3930b1185dd6c98db3dd342ddc123c6f3ef
	Issue introduced in 6.16 with commit 45ca7e9f0730ae36fc610e675b990e9cc9ca0714 and fixed in 7.2.11 with commit dd4b2f88ee517f9629d0d3dbfced02ffbc33e2dc
	Issue introduced in 6.16 with commit 45ca7e9f0730ae36fc610e675b990e9cc9ca0714 and fixed in 7.3 with commit a463f55c791b96cfd12df8b10ea737d45c80bb18
	Issue introduced in 6.15.3 with commit 17bada47e9ac3621c28e0ffa89af8279fedea00a

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

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/e4a0028b0d54b2c45e1dc8c0dd95fe3e9236f55b
	https://git.kernel.org/stable/c/38bad3930b1185dd6c98db3dd342ddc123c6f3ef
	https://git.kernel.org/stable/c/dd4b2f88ee517f9629d0d3dbfced02ffbc33e2dc
	https://git.kernel.org/stable/c/a463f55c791b96cfd12df8b10ea737d45c80bb18