CVE-2024-50169

vsock: Update rx_bytes on read_skb()

Medium · published November 7, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
11.3
In the wild
Unconfirmed
What it is

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

vsock: Update rx_bytes on read_skb()

Make sure virtio_transport_inc_rx_pkt() and virtio_transport_dec_rx_pkt()

calls are balanced (i.e. virtio_vsock_sock::rx_bytes doesn't lie) after

vsock_transport::read_skb().

While here, also inform the peer that we've freed up space and it has more

credit.

Failing to update rx_bytes after packet is dequeued leads to a warning on

SOCK_STREAM recv():

[ 233.396654] rx_queue is empty, but rx_bytes is non-zero

[ 233.396702] WARNING: CPU: 11 PID: 40601 at net/vmw_vsock/virtio_transport_common.c:589

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00215 · 11.3th percentile
Published
2024-11-07T09:31Z
EPSS history
Timeline
  • 07 NOV 09:31Z
    vsock: Update rx_bytes on read_skb()
    cvelistv5