Name | CVE-2024-4418 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1070330 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
libvirt (PTS) | jessie, jessie (lts) | 1.2.9-9+deb8u8 | fixed |
stretch (security) | 3.0.0-4+deb9u5 | fixed | |
stretch (lts), stretch | 3.0.0-4+deb9u6 | fixed | |
buster (security), buster, buster (lts) | 5.0.0-4+deb10u2 | fixed | |
bullseye | 7.0.0-3+deb11u3 | fixed | |
bookworm | 9.0.0-4+deb12u2 | fixed | |
sid, trixie | 10.9.0-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
libvirt | source | jessie | (not affected) | |||
libvirt | source | stretch | (not affected) | |||
libvirt | source | buster | (not affected) | |||
libvirt | source | bullseye | (not affected) | |||
libvirt | source | bookworm | (not affected) | |||
libvirt | source | (unstable) | 10.3.0-1 | 1070330 |
[bookworm] - libvirt <not-affected> (Vulnerable code not present)
[bullseye] - libvirt <not-affected> (Vulnerable code not present)
[buster] - libvirt <not-affected> (Vulnerable code not present)
https://bugzilla.redhat.com/show_bug.cgi?id=2278616
Fixed by: https://gitlab.com/libvirt/libvirt/-/commit/8074d64dc2eca846d6a61efe1a9b7428a0ce1dd1
Introduced by: https://gitlab.com/libvirt/libvirt/-/commit/7cb03e6a28e465c49f0cabe8fe2e7d21edb5aadf (v10.0.0-rc2)
[stretch] - libvirt <not-affected> (Vulnerable code not present)
[jessie] - libvirt <not-affected> (Vulnerable code not present)