CVE-2024-4418 json
Libvirt: stack use-after-free in virnetclientioeventloop()
published 2024-05-08 2 y ago modified 2026-11-05 4 d ago also EUVD-2024-44042
- cvss
- 6.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Red Hat Red Hat Enterprise Linux 8 8100020240606142719.489197e6
- Red Hat Red Hat Enterprise Linux 9 0:10.0.0-6.6.el9_4
- Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support 0:9.0.0-10.7.el9_2
- libvirt Debian 14, Debian 13 10.3.0-1
debian advisories DEBIAN-CVE-2024-4418
- libvirt Ubuntu 24.04 LTS 10.0.0-2ubuntu8.2
ubuntu advisories UBUNTU-CVE-2024-4418
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libvirt RHEL 9 10.0.0-6.6.el9_4
- libvirt-nss RHEL 9 10.0.0-6.6.el9_4
- libvirt-libs RHEL 9 10.0.0-6.6.el9_4
- libvirt-client RHEL 9 10.0.0-6.6.el9_4
- libvirt-daemon RHEL 9 10.0.0-6.6.el9_4
- libvirt-daemon-kvm RHEL 9 10.0.0-6.6.el9_4
- libvirt-daemon-log RHEL 9 10.0.0-6.6.el9_4
- libvirt-client-qemu RHEL 9 10.0.0-6.6.el9_4
red hat advisories RHSA-2024:4757RHSA-2024:4351RHSA-2024:4432
- libvirt Linux Micro 6.0 10.0.0-3.1
- libvirt SLE Module for Server Applications 15 SP6, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 10.0.0-150600.8.3.1
suse advisories SUSE-SU-2025:20012-1SUSE-SU-2024:1962-1
- libvirt openSUSE Tumbleweed 10.3.0-2.1
opensuse advisories openSUSE-SU-2024:13948-1
- libvirt AlmaLinux 9 10.0.0-6.6.el9_4.alma.1
- libvirt-nss AlmaLinux 9 10.0.0-6.6.el9_4.alma.1
- libvirt-libs AlmaLinux 9 10.0.0-6.6.el9_4.alma.1
- libvirt-client AlmaLinux 9 10.0.0-6.6.el9_4.alma.1
- libvirt-daemon AlmaLinux 9 10.0.0-6.6.el9_4.alma.1
- libvirt-daemon-kvm AlmaLinux 9 10.0.0-6.6.el9_4.alma.1
- libvirt-daemon-log AlmaLinux 9 10.0.0-6.6.el9_4.alma.1
- libvirt-client-qemu AlmaLinux 9 10.0.0-6.6.el9_4.alma.1
almalinux advisories ALSA-2024:4757ALSA-2024:4351
- hivex Rocky Linux 8 1.3.18-23.module+el8.10.0+1590+a67ab969
- netcf Rocky Linux 8 0.2.8-12.module+el8.10.0+1590+a67ab969
- swtpm Rocky Linux 8 0.7.0-4.20211109gitb79fd91.module+el8.10.0+1590+a67ab969
- libnbd Rocky Linux 8 1.6.0-5.module+el8.10.0+1590+a67ab969
- nbdkit Rocky Linux 8 1.24.0-5.module+el8.10.0+1590+a67ab969
- libtpms Rocky Linux 8 0.9.1-2.20211126git1ff6fe1f43.module+el8.10.0+1590+a67ab969
- libvirt Rocky Linux 8 8.0.0-23.2.module+el8.10.0+1835+43f01cbb
- seabios Rocky Linux 8 1.16.0-4.module+el8.9.0+1408+7b966129
rocky linux advisories RLSA-2024:4351
- libvirt Azure Linux 3.0 10.0.0-5
- libvirt CBL-Mariner 2.0 7.10.0-10
azure linux advisories AZL-40396AZL-40447
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-4418 updated cvss 6.2
libvirt: stack use-after-free in virNetClientIOEventLoop()
-
Red Hat Enterprise Linux 6 libvirt, libvirt-client, libvirt-python, libvirt-lock-sanlock Red Hat Enterprise Linux 7 libvirt, libvirt-nss, libvirt-libs, libvirt-admin, libvirt-client, libvirt-daemon, +24 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 Advanced Virtualization libvirt, libvirt-nss, libvirt-libs, libvirt-admin, libvirt-client, libvirt-daemon, +22 moreaffected: no fix planned “Will not fix”
-
Red Hat CodeReady Linux Builder EUS (v.9.2) libvirt-client-qemu 9.0.0-10.7.el9_2, libvirt-lock-sanlock 9.0.0-10.7.el9_2fixed: vendor fix RHSA-2024:4432
-
Red Hat Enterprise Linux AppStream (v. 8) libnbd 1.6.0-5.module+el8.9.0+18724+20190c23, netcf 0.2.8-12.module+el8.9.0+18724+20190c23, hivex 1.3.18-23.module+el8.9.0+18724+20190c23, nbdfuse 1.6.0-5.module+el8.9.0+18724+20190c23, nbdkit 1.24.0-5.module+el8.9.0+18724+20190c23, seabios 1.16.0-4.module+el8.9.0+19570+14a90618, +104 morefixed: vendor fix RHSA-2024:4351
-
Red Hat Enterprise Linux AppStream (v. 9) libvirt 10.0.0-6.6.el9_4, libvirt-nss 10.0.0-6.6.el9_4, libvirt-libs 10.0.0-6.6.el9_4, libvirt-client 10.0.0-6.6.el9_4, libvirt-daemon 10.0.0-6.6.el9_4, libvirt-daemon-kvm 10.0.0-6.6.el9_4, +22 morefixed: vendor fix RHSA-2024:4757
-
Red Hat Enterprise Linux AppStream EUS (v.9.2) libvirt 9.0.0-10.7.el9_2, libvirt-nss 9.0.0-10.7.el9_2, libvirt-libs 9.0.0-10.7.el9_2, libvirt-client 9.0.0-10.7.el9_2, libvirt-daemon 9.0.0-10.7.el9_2, libvirt-daemon-kvm 9.0.0-10.7.el9_2, +16 morefixed: vendor fix RHSA-2024:4432
-
Red Hat Enterprise Linux CRB (v. 8) libnbd 1.6.0-5.module+el8.9.0+18724+20190c23, netcf 0.2.8-12.module+el8.9.0+18724+20190c23, hivex 1.3.18-23.module+el8.9.0+18724+20190c23, nbdfuse 1.6.0-5.module+el8.9.0+18724+20190c23, seabios 1.16.0-4.module+el8.9.0+19570+14a90618, SLOF 20210217-2.module+el8.10.0+20141+6faa2812, +38 morefixed: vendor fix RHSA-2024:4351
-
Red Hat Enterprise Linux CRB (v. 9) libvirt-daemon-plugin-sanlock 10.0.0-6.6.el9_4fixed: vendor fix RHSA-2024:4757
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.49% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
- Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support
- Red Hat Red Hat Enterprise Linux 6
- Red Hat Red Hat Enterprise Linux 7
- Red Hat Red Hat Enterprise Linux 8 Advanced Virtualization
Classification
- Weakness
-
- CWE-562 Return of Stack Variable Address
References
-
access.redhat.com
/errata/RHSA-2024:4351
vendor-advisory
-
access.redhat.com
/errata/RHSA-2024:4432
vendor-advisory
-
access.redhat.com
/errata/RHSA-2024:4757
vendor-advisory
-
access.redhat.com
/security/cve/CVE-2024-4418
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2278616
issue-tracking
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/4IE44UIIC3QWBFRB4EUSFNLJBU6JLNSD/
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/Q4ZQBAJVHIZMCZNTRPUW3ZKXRKLXRQZU/
- security.netapp.com /advisory/ntap-20250411-0002/
Sources
- CVE List CVE-2024-4418
- NVD CVE-2024-4418
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.