CVE-2024-2494
MEDIUM 6.2CVSS 3.1Libvirt: negative g_new0 length can lead to unbounded memory allocation
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.
- Published
- 21 Mar 2024
- Last modified
- 25 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Deferred
- Weakness
- CWE-789
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | redhat | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://gitlab.com/libvirt/libvirt/ | libvirt | >= 9.0.0, < 9.7.0 | 9.7.0 |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9 |
all versions | |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9 |
all versions | |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-monitor-rhel9cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9 |
all versions | |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-must-gather-rhel9cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9 |
all versions | |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-operator-bundlecpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9 |
all versions | |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-podvm-builder-rhel9cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9 |
all versions | |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-podvm-payload-rhel9cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9 |
all versions | |
| CVE List | https://catalog.redhat.com/software/containers/ | openshift-sandboxed-containers/osc-rhel9-operatorcpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | virt-devel:rhelcpe:/a:redhat:enterprise_linux:8::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | virt:rhelcpe:/a:redhat:enterprise_linux:8::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libvirtcpe:/a:redhat:enterprise_linux:9::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libvirtcpe:/o:redhat:rhel_els:6 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libvirtcpe:/o:redhat:rhel_els:7 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | virt:av/libvirtcpe:/a:redhat:advanced_virtualization:8::el8 |
all versions |
References
- https://access.redhat.com/errata/RHBA-2024:3964 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2024:2560 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2024:3253 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-2494 · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2270115 · issue-tracking, x_refsource_REDHAT
- https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/BKRQXPLPC6B7FLHJXSBQYW7HNDEBW6RJ/
- https://lists.debian.org/debian-lts-announce/2024/04/msg00000.html · x_transferred
- https://security.netapp.com/advisory/ntap-20240517-0009/ · x_transferred
History
- 25 Nov 2026 22:23 UTC · NVD: 1 reference added
- 25 Nov 2026 21:44 UTC · CVE List: first stored (published 21 Mar 2024)
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 21 Mar 2024)