CVE-2024-4418: libvirt · Return of Stack Variable Address
Affects libvirtSource CVE Database V5
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
Thin evidence
One scorer or none| CNA (redhat) | CVSS 3.1 | 6.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:HExploitation evidence
Disclosed: evidence found.
CVE published 8 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| libvirt | Affected
| Fixed in
|
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
- access.redhat.com/errata/RHSA-2024:4351 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:4432 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:4757 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2024-4418 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2278616 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4IE44UIIC3QWBFRB4EUSFNLJBU6JLNSD/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q4ZQBAJVHIZMCZNTRPUW3ZKXRKLXRQZU/ (opens in a new tab)
- security.netapp.com/advisory/ntap-20250411-0002/ (opens in a new tab)