Use After Free Affecting libvirt-daemon-proxy package, versions <0:10.0.0-6.6.el9_4.alma.1


Severity

Recommended
medium

Based on AlmaLinux security rating

    Threat Intelligence

    EPSS
    0.05% (17th 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-LIBVIRTDAEMONPROXY-7568927
  • published 25 Jul 2024
  • disclosed 23 Jul 2024

How to fix?

Upgrade AlmaLinux:9 libvirt-daemon-proxy to version 0:10.0.0-6.6.el9_4.alma.1 or higher.
This issue was patched in ALSA-2024:4757.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libvirt-daemon-proxy package and not the libvirt-daemon-proxy package as distributed by AlmaLinux. See How to fix? for AlmaLinux:9 relevant fixed versions and status.

A race condition leading to a stack use-after-free flaw was found in libvirt. Due to a bad assumption in the virNetClientIOEventLoop() method, the data pointer to a stack-allocated virNetClientIOEventData structure ended up being used in the virNetClientIOEventFD callback while the data pointer's stack frame was concurrently being "freed" when returning from virNetClientIOEventLoop(). The 'virtproxyd' daemon can be used to trigger requests. If libvirt is configured with fine-grained access control, this issue, in theory, allows a user to escape their otherwise limited access. This flaw allows a local, unprivileged user to access virtproxyd without authenticating. Remote users would need to authenticate before they could access it.

CVSS Scores

version 3.1
Expand this section

SUSE

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

Red Hat

6.2 medium