CVE-2024-4418 Libvirt: stack use-after-free in virnetclientioeventloop()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
8 packages: 6 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat advanced virtualization | All versions | No fix listed | No fix yet |
| debian/libvirt(Debian 13) | < 10.3.0-1 | 10.3.0-1 | Fixed |
| debian/libvirt(Debian 14) | < 10.3.0-1 | 10.3.0-1 | Fixed |
| libvirt | < 10.4.0 | 10.4.0 | Fixed |
| redhat enterprise linux | < 0:10.0.0-6.6.el9_4; < 8100020240606142719.489197e6 | 0:10.0.0-6.6.el9_4, 8100020240606142719.489197e6 | Fixed |
| redhat rhel eus | < 0:9.0.0-10.7.el9_2 | 0:9.0.0-10.7.el9_2 | Fixed |
| ubuntu/libvirt(Ubuntu 24.04) | < 10.0.0-2ubuntu8.2 | 10.0.0-2ubuntu8.2 | Fixed |
| redhat rhel els | = 6; = 7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libvirt(Debian:13) | < 10.3.0-1 | 10.3.0-1 |
| debian/libvirt(Debian:14) | < 10.3.0-1 | 10.3.0-1 |
| libvirt | < 10.4.0 | 10.4.0 |
| redhat enterprise linux | < 8100020240606142719.489197e6 | 8100020240606142719.489197e6 |
| redhat enterprise linux | < 0:10.0.0-6.6.el9_4 | 0:10.0.0-6.6.el9_4 |
| redhat rhel eus | < 0:9.0.0-10.7.el9_2 | 0:9.0.0-10.7.el9_2 |
| redhat rhel els | = 6 | No fix listed |
| redhat rhel els | = 7 | No fix listed |
| redhat advanced virtualization | All versions | No fix listed |
| ubuntu/libvirt(Ubuntu:24.04) | < 10.0.0-2ubuntu8.2 | 10.0.0-2ubuntu8.2 |
References
- Debian Security Tracker CVE-2024-4418 vendor-advisory
- RHSA-2024:4351 vendor-advisory
- RHSA-2024:4432 vendor-advisory
- RHSA-2024:4757 vendor-advisory
- access.redhat.com vdb-entry
- RHBZ#2278616 issue-tracking
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.netapp.com
- Ubuntu CVE tracker vendor-advisory
- USN-6763-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2024-44042 third-party-advisory