Uncontrolled Memory Allocation Affecting libvirt-daemon-driver-qemu package, versions <0:4.5.0-36.amzn2.3.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.05% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-LIBVIRTDAEMONDRIVERQEMU-6663543
  • published19 Apr 2024
  • disclosed21 Mar 2024

Introduced: 21 Mar 2024

CVE-2024-2494  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 libvirt-daemon-driver-qemu to version 0:4.5.0-36.amzn2.3.1 or higher.
This issue was patched in ALAS2-2024-2513.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libvirt-daemon-driver-qemu package and not the libvirt-daemon-driver-qemu package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Scores

version 3.1