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

Published Jan 9, 2024
·
Updated

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

15 affected componentsFixes available
Linux Linux kernel<6.4
Linux Linux kernel=6.4-rc1
Linux Linux kernel=6.4-rc2
Linux Linux kernel=6.4-rc3
Linux Linux kernel=6.4-rc4
Linux Linux kernel=6.4-rc5
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/kernel<6.4
6.4
Microsoft cbl2 kernel 5.15.180.1-1
Microsoft cbl2 kernel 5.15.180.1-1
Microsoft cbl2 kernel 5.15.153.1-1

Event History

Jan 9, 2024
Data Sourced
via Red Hat·11:59 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:36 PM
Data Sourced
via MITRE·05:36 PM
DescriptionSeverityWeakness
Jan 17, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
SeverityAffected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Jun 27, 2024
Data Sourced
via Launchpad·12:58 AM
Description
Apr 27, 2025
Data Sourced
via Ubuntu·01:43 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

Can CVE-2024-0340 be exploited remotely?

CVE-2024-0340 is a local privilege escalation vulnerability, meaning it cannot be exploited remotely.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203