Security mailing lists by PureSourceCode

CVE-2024-2494

MEDIUM 6.2CVSS 3.1

Libvirt: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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-rhel9
cpe:/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-rhel9
cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9
all versions
CVE List https://catalog.redhat.com/software/containers/ openshift-sandboxed-containers/osc-monitor-rhel9
cpe:/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-rhel9
cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9
all versions
CVE List https://catalog.redhat.com/software/containers/ openshift-sandboxed-containers/osc-operator-bundle
cpe:/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-rhel9
cpe:/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-rhel9
cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9
all versions
CVE List https://catalog.redhat.com/software/containers/ openshift-sandboxed-containers/osc-rhel9-operator
cpe:/a:redhat:openshift_sandboxed_containers:1.6.0::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ virt-devel:rhel
cpe:/a:redhat:enterprise_linux:8::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ virt:rhel
cpe:/a:redhat:enterprise_linux:8::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libvirt
cpe:/a:redhat:enterprise_linux:9::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libvirt
cpe:/o:redhat:rhel_els:6
CVE List https://access.redhat.com/downloads/content/package-browser/ libvirt
cpe:/o:redhat:rhel_els:7
CVE List https://access.redhat.com/downloads/content/package-browser/ virt:av/libvirt
cpe:/a:redhat:advanced_virtualization:8::el8
all versions

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.