CVE-2024-2494CWE-789

Libvirt: negative g_new0 length can lead to unbounded memory allocation

Medium · published March 21, 2024

CVSS v3.1
6.2
EPSS
0%
Percentile
29.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.2 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00367 · 29.4th percentile
Weakness
CWE-789 · Memory Allocation with Excessive Size Value
Published
2024-03-21T13:39Z
EPSS history
Timeline
  • 21 MAR 13:39Z
    Libvirt: negative g_new0 length can lead to unbounded memory allocation
    cvelistv5