CVE-2024-0340
Kernel: information disclosure in vhost/vhost.c:vhost_new_msg()
Reported by redhat · Published January 9, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 6.1.79-99.164.amzn2023, 4.14.343-259.562.amzn2 |
| python3-perf | Amazon Linux | 6.1.79-99.164.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.79-99.164.amzn2023, 4.14.343-259.562.amzn2 |
| bpftool | Amazon Linux | 6.1.79-99.164.amzn2023 |
| kernel-livepatch-4.14.343-259.562 | Amazon Linux | 1.0-0.amzn2 |
| kernel-livepatch-6.1.79-99.164 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.79-99.164.amzn2023, 4.14.343-259.562.amzn2 |
| kernel-devel | Amazon Linux | 6.1.79-99.164.amzn2023, 4.14.343-259.562.amzn2 |
| kernel-libbpf-devel | Amazon Linux | 6.1.79-99.164.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.79-99.164.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.79-99.164.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.79-99.164.amzn2023 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0 | ||
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.18.0-553.5.1.rt7.346.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.18.0-553.5.1.el8_10 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:5.14.0-503.11.1.el9_5 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:5.14.0-503.11.1.el9_5 |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | 0:5.14.0-427.68.1.el9_4 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 9 | 0:5.14.0-503.11.1.el9_5 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.18.0-553.5.1.rt7.346.el8_10 |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | 0:5.14.0-427.68.1.el9_4 |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.18.0-553.5.1.el8_10 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| 0 | ||
| Red Hat | Red Hat Enterprise Linux 7 |
Timeline
- Jan 9, 2024 CVE Published
- Jan 9, 2024 PoC Published (2 in total, the first dated here)
- Jan 18, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (17 in total, the first dated here)
- Mar 21, 2026 Distribution Patch (37 in total, the first dated here)
- Mar 21, 2026 Security Advisory (39 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-0340
vulnetix vdb fixes CVE-2024-0340
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-0340/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2024:3618 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:3627 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:9315 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:7526 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2257406 issue-trackingx_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html url
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html url
- https://ubuntu.com/security/notices/USN-6688-1 advisory
- https://ubuntu.com/security/notices/USN-6706-1 advisory
- https://ubuntu.com/security/notices/USN-6700-2 advisory
- https://ubuntu.com/security/notices/USN-6701-1 advisory
- https://ubuntu.com/security/notices/USN-6686-1 advisory
- https://ubuntu.com/security/notices/USN-6653-4 advisory
- https://ubuntu.com/security/notices/USN-6680-2 advisory
- https://ubuntu.com/security/notices/USN-6686-5 advisory
- https://ubuntu.com/security/notices/USN-6704-3 advisory
- https://www.suse.com/support/update/announcement/2024/suse-su-20241039-1 advisory
- https://www.suse.com/support/update/announcement/2024/suse-su-20240900-1 advisory
…and 57 more