CVE-2024-0340: Kernel: information disclosure in vhost/vhost.c:vhost_new_msg()
A vulnerability was found in vhostnewmsg 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:vhostnewmsg() function. This issue can allow local privileged users to read some kernel memory contents when reading from the /dev/vhost-net device file.
Other sources
A vulnerability was found in vhostnewmsg in drivers/vhost/vhost.c in the Linux kernel. This flaw does not properly initialize memory in messages passed between virtual guests and the host operating system in the vhost/vhost.c:vhostnewmsg() function. This can allow local privileged users to read some kernel memory contents when reading from the /dev/vhost-net device file.
References: https://lore.kernel.org/lkml/5kn47peabxjrptkqa6dwtyus35ahf4pcj4qm4pumse33kxqpjw@mec4se5relrc/T/
— Red Hat
Kernel: information disclosure in vhost/vhost.c:vhostnewmsg()
— Microsoft
Linux Kernel could allow a local authenticated attacker to obtain sensitive information, caused by a flaw in the vhostnewmsg function in drivers/vhost/vhost.c. By reading the /dev/vhost-net device file, an attacker could exploit this vulnerability to obtain kernel memory information, and use this information to launch further attacks against the affected system.
— IBM
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2024-0340?
CVE-2024-0340 is classified as a high severity vulnerability due to improper memory initialization in the Linux kernel.
How do I fix CVE-2024-0340?
To mitigate CVE-2024-0340, update to a patched version of the kernel, specifically versions 5.10.223-1, 5.10.226-1, 6.1.123-1, or any later versions.
Which specific versions of the Linux kernel are affected by CVE-2024-0340?
CVE-2024-0340 affects versions of the Linux kernel up to 6.4 and includes release candidates up to 6.4-rc5.
Can CVE-2024-0340 be exploited remotely?
CVE-2024-0340 is a local privilege escalation vulnerability, meaning it cannot be exploited remotely.
Who is affected by CVE-2024-0340?
Local users with access to a vulnerable system running the affected versions of the Linux kernel are at risk due to CVE-2024-0340.