Skip to content
VulniPulse
Medium6.2Red Hat Linux

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.

Open the Red Hat advisory

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

Red Hat LinuxRed Hat Enterprise Linux

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

All end-of-life dates for Red Hat Enterprise Linux

All Red Hat Linux advisories

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).

Alert me about Red Hat RHEL & SELinux

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.