CVE-2024-2494: Red Hat Libvirt: negative g_new0 length can lead to unbounded memory allocation
This Red Hat advisory covers CVE-2024-2494 in Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7.
- CVE-2024-2494
Key facts
- Vendor rating
- Medium, CVSS 6.2
- CISA KEV
- Not listed (catalogue checked )
- Fixed in
- virt-devel:rhel-8100020240409073027.489197e6, virt:rhel-8100020240409073027.489197e6, libvirt-0:10.0.0-6.2.el9_4 and 2 more below
- Source published
- Source revised
- Listed by VulniPulse
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
Description
A flaw was found in the RPC library APIs of libvirt. The RPC server deserialization code allocates memory for arrays before the non-negative length check is performed by the C API entry points.
Passing a negative length to the g_new0 function results in a crash due to the negative length being treated as a huge positive number. This flaw allows a local, unprivileged user to perform a denial of service attack by causing the libvirt daemon to crash.
Red Hat severity: Moderate — CVSS 6.2 (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). Weakness: CWE-789.
Affected Red Hat products: Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8 Advanced Virtualization. Red Hat fixing advisory: RHSA-2024:3253, RHSA-2024:2560.
Affected products named by the advisory: Red Hat package: libvirt.
Text from the source record.
How to fix CVE-2024-2494
Upgrade to a fixed release named by Red Hat:
- virt-devel:rhel-8100020240409073027.489197e6
- virt:rhel-8100020240409073027.489197e6
- libvirt-0:10.0.0-6.2.el9_4
- RHSA-2024:3253
- RHSA-2024:2560
Vendor guidance
- Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Support dates for the fixed release lines
- Red Hat Enterprise Linux 6: support ended
More Red Hat Linux advisories
CVE-2026-109619Oct 21, 2026fatal error handling retains stale request state leading to use-after-freeCVE-2026-111497Oct 22, 2026Out-of-Bounds Write in Google Brotli DecoderCVE-2026-109618Oct 21, 2026OOM bailout during request parsing leads to memory corruption and RCECVE-2026-123158Nov 5, 2026Password authentication bypass via password hash misinterpretationCVE-2026-119977Oct 31, 2026Arbitrary code execution via predictable upgrade staging pathsCVE-2026-97229Oct 13, 2026integer overflow issue in CI/CD regular expression compiler
Get an email when Red Hat RHEL & SELinux publishes the next one.
See Red Hat RHEL & SELinux's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).
iPhone and Android apps · New on the App Store
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.