Skip to main content
VulnerabilityPublished Updated

CVE-2024-2494: libvirt · Excessive Memory Allocation

Affects libvirtSource GCVE Database

0
Authoritative record:CVE-2024-2494· Medium 6.2

Not known to be exploited · CVSS 6.2 Medium · patch available : update libvirt when convenient.

Data as of 26 Oct 2026, 09:15 UTC

CVSS 3.1 base score
6.2Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Mar 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Debiandebian/libvirtpkg:deb/debian/libvirtOther threatsAffected
  • =9.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Official patches are available and should be applied to affected systems. Red Hat has released updates for Red Hat Enterprise Linux 8 and related modules, and Ubuntu has released fixed package versions for Ubuntu 20.04 LTS, 22.04 LTS, and 23.10. Users should update libvirt packages to the patched versions and reboot the system to complete remediation. Patch status is confirmed by vendor advisories.

Description

A vulnerability in the RPC library APIs of libvirt allows a local, unprivileged user to cause a denial of service by crashing the libvirt daemon. The issue arises because the RPC server deserialization code allocates memory for arrays before validating that the length is non-negative. Passing a negative length to the g_new0 function leads to a crash due to an unbounded memory allocation attempt. This flaw affects multiple versions of libvirt and has been assigned CVE-2024-2494 with a CVSS score of 6.2 (medium severity). Official patches are available from Red Hat and Ubuntu to address this issue.

References

Community reviews

Loading reviews…