CVE-2024-2494: Libvirt: negative g_new0 length can lead to unbounded memory allocation
CVE-2024-2494 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Medium
- CVSS base score
- 6.2 (Red Hat), 4 (NetApp)
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H· base score 6.2, scored by redhatAttack vector: local. Attack complexity: low. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: none. Integrity impact: none. Availability impact: high.- Weakness
- CWE-789 Memory Allocation with Excessive Size Value
- EPSS
- 0.37% chance of exploitation in the next 30 days (31st percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: partial. CISA, .
- Fixed releases
- 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
- Assigned by
- redhat (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2024-2494; each belongs to its advisory, not to every product listed. How records are collected and checked.
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.
Text from the CVE.org record (redhat).
How do I fix CVE-2024-2494?
Upgrade to a fixed release named by the vendor:
- 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
- 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. (Red Hat)
- Workaround: 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. (CVE.org record)
Vendor advisories for CVE-2024-2494
NetApp
1 advisory- Advisory severityMedium4.0
Medium [CVE-2024-2494] Libvirt Vulnerability in NetApp Products
NTAP-20240517-0009Source published Source updated
Multiple NetApp products incorporate Libvirt. Libvirt versions prior to 10.2.0-rc1 are susceptible to a vulnerability which when successfully exploited could lead to Denial of Service (DoS). Successful exploitation of this vulnerability could lead to Denial of Service (DoS). NetApp states there is no workaround available at this time.
- Affected products in this advisory
- No product details extracted. Check the source bulletin.
- Source-reported affected versions
- 10.2.0
- Source-reported fixed versions
- No fixed-version detail extracted. This does not mean no fix exists.
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
Red Hat
1 advisory- Advisory severityMedium6.2
Medium [CVE-2024-2494] negative g_new0 length can lead to unbounded memory allocation
CVE-2024-2494Source published Source updated
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…
- Affected products in this advisory
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8 Advanced Virtualization
1 more entries in the full advisory.
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- virt-devel:rhel-8100020240409073027.489197e6
- virt:rhel-8100020240409073027.489197e6
- libvirt-0:10.0.0-6.2.el9_4
- RHSA-2024:3253
1 more entries in the full advisory.
- Mitigation 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.
References
- CVE-2024-2494 recordCVE.org
- CVE-2024-2494 detailNVD
- RHSA-2024:2560vendor-advisory, x_refsource_redhat
- RHSA-2024:3253vendor-advisory, x_refsource_redhat
- access.redhat.com/security/cve/CVE-2024-2494vdb-entry, x_refsource_redhat
- RHBZ#2270115issue-tracking, x_refsource_redhat
- lists.libvirt.org/archives/list/[email protected]/thread/BKRQXPLPC6B7FL…
Timeline
- CVE record published
- CVE record last updated
- First vendor advisory listed by VulniPulse
More NetApp advisories
CVE-2026-123862Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-114949Nov 20, 2026November 2026 MySQL Vulnerabilities in NetApp ProductsCVE-2026-123863Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123828Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123863Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123868Nov 20, 2026Node.js Vulnerability in NetApp Products
Get an email when NetApp publishes the next one.
See NetApp's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.