CVE-2024-50169 vsock: Update rx_bytes on read_skb()

Medium 5.5 Published Updated

A bug in the Linux kernel vsock implementation causes a warning and potential instability when reading packets, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-50169?

CVE-2024-50169 is a medium-severity denial of service vulnerability in Linux kernel, published on 7 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

Which versions are affected by CVE-2024-50169?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50169?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-50169 being exploited?

There is no known exploitation of CVE-2024-50169 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-53450, BELL-CVE-2024-50169, DEBIAN-CVE-2024-50169, GHSA-p9j8-38hj-99w2, UBUNTU-CVE-2024-50169.

Is CVE-2024-50169 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free