cve.bz

CVE-2024-0340 linux linux kernel

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-01-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-0340 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-0340?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-0340?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-0340 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:4.18.0-553.5.1.rt7.346.el8_10
Red Hat Enterprise Linux 80:4.18.0-553.5.1.el8_10
Red Hat Enterprise Linux 90:5.14.0-503.11.1.el9_5
Red Hat Enterprise Linux 9.4 Extended Update Support0:5.14.0-427.68.1.el9_4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux4.19.316-1DLA-3840-1
Debian10linux-5.105.10.216-1~deb10u1DLA-3842-1
Debian11linux5.10.216-1DSA-5681-1
Debian12linux6.1.82-1DEBIAN-CVE-2024-0340
Debian13, 14linux6.4.4-1DEBIAN-CVE-2024-0340
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-0340
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2024-0340
Ubuntu20.04:LTSlinux5.4.0-173.191UBUNTU-CVE-2024-0340 USN-6681-1
Ubuntu20.04:LTSlinux-aws5.4.0-1120.130UBUNTU-CVE-2024-0340 USN-6681-4
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1056.61~20.04.1UBUNTU-CVE-2024-0340 USN-6705-1
Ubuntu20.04:LTSlinux-azure5.4.0-1126.133UBUNTU-CVE-2024-0340 USN-6716-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1058.66~20.04.2UBUNTU-CVE-2024-0340 USN-6686-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1058.66~20.04.2.1USN-6686-1
Ubuntu20.04:LTSlinux-bluefield5.4.0-1080.87UBUNTU-CVE-2024-0340 USN-6681-2
Ubuntu20.04:LTSlinux-gcp5.4.0-1124.133UBUNTU-CVE-2024-0340 USN-6681-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1053.61~20.04.1UBUNTU-CVE-2024-0340 USN-6686-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2024-0340
52 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.5.1.el8_10RHSA-2024:3618
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.5.1.el8_10RHSA-2024:3618
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.5.1.rt7.346.el8_10RHSA-2024:3627
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.5.1.rt7.346.el8_10RHSA-2024:3627
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 27 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.4.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.4.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 44 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 15 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatrhel_eus:9.4::appstreamrv, perf, rtla and 26 more0:5.14.0-427.68.1.el9_4RHSA-2025:7526
6 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-source and 3 more5.3.18-150300.59.153.2SUSE-SU-2024:0857-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.153.2.150300.18.90.2SUSE-SU-2024:0857-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morekernel-syms5.3.18-150300.59.153.1SUSE-SU-2024:0857-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.194.1SUSE-SU-2024:0484-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2kernel-default5.3.18-150200.24.183.1SUSE-SU-2024:0926-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.153.2SUSE-SU-2024:0857-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.108.1SUSE-SU-2024:0515-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.49.1SUSE-SU-2024:0516-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-default-base5.3.18-150200.24.183.1.150200.9.93.2SUSE-SU-2024:0926-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-docs, kernel-syms, kernel-source and 3 more5.3.18-150200.24.183.1SUSE-SU-2024:0926-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.108.1SUSE-SU-2024:0515-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.108.1.150400.24.50.2SUSE-SU-2024:0515-1
21 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.49.1SUSE-SU-2024:0516-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.34.1SUSE-SU-2024:0514-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.49.1.150500.6.21.2SUSE-SU-2024:0516-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default5.14.21-150400.24.108.1SUSE-SU-2024:0515-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default-base5.14.21-150400.24.108.1.150400.24.50.2SUSE-SU-2024:0515-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-rt5.14.21-150400.15.68.1SUSE-SU-2024:0476-1
AlmaLinux8kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.5.1.el8_10ALSA-2024:3618
Rocky Linux8kernel0:4.18.0-553.5.1.el8_10RLSA-2024:3618
Rocky Linux8kernel-rt0:4.18.0-553.5.1.rt7.346.el8_10RLSA-2024:3627
Azure Linux2kernel5.15.153.1-1AZL-33319
Alpaquita23, streamlinux-lts6.1.82-r0BELL-CVE-2024-0340

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.5.1.rt7.346.el8_10Fixed 2024-06-05RHSA-2024:3627
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.5.1.el8_10Fixed 2024-06-05RHSA-2024:3618
Red Hat Enterprise Linux 9kernel-0:5.14.0-503.11.1.el9_5Fixed 2024-11-12RHSA-2024:9315
Red Hat Enterprise Linux 9.4 Extended Update Supportkernel-0:5.14.0-427.68.1.el9_4Fixed 2025-05-14RHSA-2025:7526
Red Hat Enterprise Linux 6kernelWill not fix
Red Hat Enterprise Linux 7kernelWill not fix
Red Hat Enterprise Linux 7kernel-rtWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-0340.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON