Skip to main content
VulnerabilityPublished Updated

CVE-2024-4418: libvirt · Return of Stack Variable Address

Affects libvirtSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.2 Medium : upgrade to 10.4.0 when convenient.

Data as of 22 Nov 2026, 21:14 UTC

CVSS 3.1 base score
6.2Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (redhat)CVSS 3.16.2
EPSS
0.4% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 10.4.0
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.

What to do

Upgrade libvirt to 10.4.0.

Affected software

ProductAffectedFixed in
libvirtAffected
  • <10.4.0
Fixed in
  • 10.4.0

AI-suggested

In the absence of patches, administrators should restrict local access to systems running virtproxyd to trusted users only, minimizing the risk of local exploitation. Configuring strict access controls and monitoring local user activities can help detect and prevent exploitation attempts. Additionally, consider disabling or limiting the use of virtproxyd if it is not essential to your environment. Employing runtime protections such as stack canaries, address space layout randomization (ASLR), and control flow integrity (CFI) can reduce the likelihood of successful exploitation. Regularly audit and update virtualization management components and enforce the principle of least privilege for all users interacting with libvirt services. Finally, monitor logs for unusual access patterns or crashes related to virtproxyd to enable early detection of exploitation attempts.

Description

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.

References

Community reviews

Loading reviews…