Skip to main content
Network Thinking Solutions Logo

CVE-2024-2494

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.

All CVEs
CVE-2024-2494Published 3/21/2024

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.

Vendor advisory
CVSS 3.16.2Medium

Overview

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
3/21/2024
Last modified
11/25/2026
CVE assigner
redhat
NVD analysis
Deferred

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
libvirt
Vendor not specified
≥ 9.0.0, < 9.7.0

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
OSE-OSC-1.6-RHEL-9
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 8
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 9
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 6
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 7
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 8 Advanced Virtualization
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

access.redhat.com/errata/RHBA-2024:3964vendor-advisory · x_refsource_REDHAT
access.redhat.com/errata/RHSA-2024:2560vendor-advisory · x_refsource_REDHAT
access.redhat.com/errata/RHSA-2024:3253vendor-advisory · x_refsource_REDHAT
access.redhat.com/errata/RHSA-2024:2560vendor-advisory · x_refsource_REDHAT · x_transferred
access.redhat.com/errata/RHSA-2024:3253vendor-advisory · x_refsource_REDHAT · x_transferred

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

6.2 · Medium CVSS 3.1

Scored by redhat

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

6.2 · Medium CVSS 3.1

Scored by secalert@redhat.com

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Related weaknesses

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.