Skip to content

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

MediumCVSS 6.2 EPSS 0.49%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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