# CVE-2024-4418: Libvirt: stack use-after-free in virnetclientioeventloop()

- Severity: Medium 6.2 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2024-05-08T03:03:05.135Z
- Modified: 2026-11-05T14:16:57.380Z
- Weaknesses: CWE-562
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- libvirt: before 10.4.0 (not affected: from 0:10.0.0-6.6.el9_4 before *; from 0:9.0.0-10.7.el9_2 before *)
- virt-devel:rhel: no versions given (not affected: from 8100020240606142719.489197e6 before *)
- virt:rhel: no versions given (not affected: from 8100020240606142719.489197e6 before *)
- virt:av/libvirt: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2024:4351> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:4432> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:4757> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2024-4418> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2278616> (issue-tracking)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4IE44UIIC3QWBFRB4EUSFNLJBU6JLNSD/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q4ZQBAJVHIZMCZNTRPUW3ZKXRKLXRQZU/>
- <https://security.netapp.com/advisory/ntap-20250411-0002/>

## Sources

- CVE List: [CVE-2024-4418](https://www.cve.org/CVERecord?id=CVE-2024-4418), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2024-4418](https://nvd.nist.gov/vuln/detail/CVE-2024-4418), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2024-4418 · Whole record: https://cve.day/CVE-2024-4418.json · Rebuilt by cve.day 2026-11-25T22:58:40.065Z
