Kernel: information disclosure in vhost/vhost.c:vhost_new_msg()
Summary
| CVE | CVE-2024-0340 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-01-09 18:15:47 UTC |
| Updated | 2026-11-06 14:17:03 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS: 0.002350000 probability, percentile 0.144490000 (date 2026-11-06)
Problem Types: CWE-200 | NVD-CWE-noinfo | CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | [email protected] | Secondary | 4.4 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | CVSS | 4.4 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
| Operating System | Linux | Linux Kernel | 6.4 | rc1 | All | All |
| Operating System | Linux | Linux Kernel | 6.4 | rc2 | All | All |
| Operating System | Linux | Linux Kernel | 6.4 | rc3 | All | All |
| Operating System | Linux | Linux Kernel | 6.4 | rc4 | All | All |
| Operating System | Linux | Linux Kernel | 6.4 | rc5 | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:4.18.0-553.5.1.rt7.346.el8_10 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:4.18.0-553.5.1.el8_10 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:5.14.0-503.11.1.el9_5 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:5.14.0-503.11.1.el9_5 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | unaffected 0:5.14.0-427.68.1.el9_4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 6 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| lists.debian.org/debian-lts-announce/2024/06/msg00017.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| 2257406 – (CVE-2024-0340) CVE-2024-0340 kernel: Information disclosure in vhost/vhost.c:vhost_new_msg() | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Issue Tracking, Patch, Third Party Advisory |
| cve-details | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| access.redhat.com/errata/RHSA-2024:3618 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:7526 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3627 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| [PATCH] vhost: use kzalloc() instead of kmalloc() followed by memset() | af854a3a-2127-422b-91ae-364da2661108 | lore.kernel.org | Mailing List, Patch |
| access.redhat.com/errata/RHSA-2024:9315 | [email protected] | access.redhat.com | |
| lists.debian.org/debian-lts-announce/2024/06/msg00020.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2024-01-09T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2023-05-22T00:00:00.000Z | Made public. |
Legacy QID Mappings
- 161470 Oracle Enterprise Linux Security Update for unbreakable enterprise kernel-container (ELSA-2024-12274)
- 161471 Oracle Enterprise Linux Security Update for unbreakable enterprise kernel (ELSA-2024-12271)
- 161472 Oracle Enterprise Linux Security Update for unbreakable enterprise kernel-container (ELSA-2024-12275)
- 200171 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6681-1)
- 200179 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6686-1)
- 200182 Ubuntu Security Notification for Linux kernel (OEM) Vulnerabilities (USN-6688-1)
- 200183 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6681-2)
- 200191 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6686-2)
- 200192 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6681-3)
- 200203 Ubuntu Security Notification for Linux kernel (AWS) Vulnerabilities (USN-6681-4)
- 200206 Ubuntu Security Notification for Linux kernel (Oracle) Vulnerabilities (USN-6686-3)
- 200208 Ubuntu Security Notification for Linux kernel (KVM) Vulnerabilities (USN-6686-4)
- 200214 Ubuntu Security Notification for Linux kernel (AWS) Vulnerabilities (USN-6705-1)
- 200221 Ubuntu Security Notification for Linux kernel (Azure) Vulnerabilities (USN-6716-1)
- 200231 Ubuntu Security Notification for Linux kernel (Intel IoTG) Vulnerabilities (USN-6686-5)
- 357301 Amazon Linux Security Advisory for kernel : ALAS2023-2024-549
- 357317 Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.4-2024-061
- 357319 Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2024-051
- 6000567 Debian Security Update for linux (DSA 5658-1)
- 6140439 AWS Bottlerocket Security Update for kernel (GHSA-v23w-8gv3-8rxc)
- 673321 EulerOS Security Update for kernel (EulerOS-SA-2024-1337)
- 673547 EulerOS Security Update for kernel (EulerOS-SA-2024-1315)
- 673723 EulerOS Security Update for kernel (EulerOS-SA-2024-1237)
- 673992 EulerOS Security Update for kernel (EulerOS-SA-2024-1215)
- 674156 EulerOS Security Update for kernel (EulerOS-SA-2024-1509)
- 674158 EulerOS Security Update for kernel (EulerOS-SA-2024-1488)
- 755750 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0476-1)
- 755753 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0484-1)
- 755754 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0516-1)
- 755755 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0515-1)
- 755756 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0514-1)
- 755765 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0483-1)
- 755966 SUSE Enterprise Linux Security Update for the linux kernel (SUSE-SU-2024:0857-1)
- 756004 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0926-1)