Uncontrolled Memory Allocation Affecting libvirt-devel package, versions <0:10.0.0-6.2.el9_4.alma.1


Severity

Recommended
medium

Based on AlmaLinux security rating

    Threat Intelligence

    EPSS
    0.05% (19th 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 ID SNYK-ALMALINUX9-LIBVIRTDEVEL-6811239
  • published 7 May 2024
  • disclosed 30 Apr 2024

How to fix?

Upgrade AlmaLinux:9 libvirt-devel to version 0:10.0.0-6.2.el9_4.alma.1 or higher.
This issue was patched in ALSA-2024:2560.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libvirt-devel package and not the libvirt-devel package as distributed by AlmaLinux. See How to fix? for AlmaLinux:9 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
Expand this section

SUSE

5.5 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High
Expand this section

Red Hat

6.2 medium