Uncontrolled Memory Allocation Affecting qemu-kvm-ui-spice package, versions <15:6.2.0-49.module+el8.10.0+1752+38c6b60a


Severity

Recommended
medium

Based on Rocky 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-ROCKY8-QEMUKVMUISPICE-7260651
  • published15 Jun 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 Rocky-Linux:8 qemu-kvm-ui-spice to version 15:6.2.0-49.module+el8.10.0+1752+38c6b60a or higher.
This issue was patched in RLSA-2024:3253.

NVD Description

Note: Versions mentioned in the description apply only to the upstream qemu-kvm-ui-spice package and not the qemu-kvm-ui-spice package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:8 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 Base Scores

version 3.1