CVE-2024-2494: libvirt · Excessive Memory Allocation
Affects libvirtSource GCVE Database
Not known to be exploited · CVSS 6.2 Medium · patch available : update libvirt when convenient.
Data as of 26 Oct 2026, 09:15 UTC
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 21 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
Debiandebian/libvirtpkg:deb/debian/libvirtOther threats | Affected
| 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
- access.redhat.com/errata/RHSA-2024:3253 (opens in a new tab)
- access.redhat.com/security/updates/classification/ (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2270115 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_3253.json (opens in a new tab)
- ubuntu.com/security/CVE-2024-2494 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-2494 (opens in a new tab)
- ubuntu.com/security/notices/USN-6734-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6734-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8652-1 (opens in a new tab)