CVE-2024-0340 Kernel: information disclosure in vhost/vhost.c:vhost_new_msg()

Medium 4.4 Published Updated

Local privileged users can read kernel memory contents via the vhost-net device due to improper memory initialization in the Linux kernel.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-0340?

CVE-2024-0340 is a medium-severity vulnerability in Linux kernel, published on 9 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in vhost_new_msg in drivers/vhost/vhost.c in the Linux kernel, which does not properly initialize memory in messages passed between virtual guests and the host operating system in the vhost/vhost.c:vhost_new_msg() function. This issue can allow local privileged users to read some kernel memory contents when reading from the /dev/vhost-net device file.

Weakness: CWE-200

Which versions are affected by CVE-2024-0340?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-0340?

Apply the vendor's patch.

Is CVE-2024-0340 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-33319, BELL-CVE-2024-0340, DEBIAN-CVE-2024-0340, GHSA-59h3-54m2-3jm7, UBUNTU-CVE-2024-0340.

Is CVE-2024-0340 in your software?

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

Check your SBOMs for free