CVE-2024-2494

Source
https://cve.org/CVERecord?id=CVE-2024-2494
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-2494.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-2494
Downstream
Related
Published
2024-03-21T13:39:08.847Z
Modified
2026-05-08T04:53:43.840501Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Libvirt: negative g_new0 length can lead to unbounded memory allocation
Details

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.

Database specific
{
    "cna_assigner": "redhat",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2494.json",
    "cwe_ids": [
        "CWE-789"
    ]
}
References

Affected packages

Git / gitlab.com/libvirt/libvirt

Affected ranges

Type
GIT
Repo
https://gitlab.com/libvirt/libvirt
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "9.0.0"
        },
        {
            "fixed": "9.7.0"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

Other
CVE-2023-3750
v9.*
v9.0.0
v9.1.0
v9.1.0-rc1
v9.1.0-rc2
v9.2.0
v9.2.0-rc1
v9.2.0-rc2
v9.3.0
v9.3.0-rc1
v9.3.0-rc2
v9.4.0
v9.4.0-rc1
v9.4.0-rc2
v9.5.0
v9.5.0-rc1
v9.5.0-rc2
v9.6.0
v9.6.0-rc1
v9.6.0-rc2
v9.7.0-rc1
v9.7.0-rc2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-2494.json"