Libvirt: stack use-after-free in virnetclientioeventloop()
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 6 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | libvirt | before 10.4.0 | 10.4.0 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | 8100020240606142719.489197e6 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | 8100020240606142719.489197e6 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 10.0.0-6.6.el9_4 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | — | 9.0.0-10.7.el9_2 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 6 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux 8 Advanced Virtualization | — | — | No fix listed | CNA |
- libvirt Vendor— Affected before 10.4.0 Fixed in 10.4.0 Patch available CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in 8100020240606142719.489197e6 Patch available CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in 8100020240606142719.489197e6 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 10.0.0-6.6.el9_4 Patch available CNA
- Red Hat Enterprise Linux 9.2 Extended Update Support VendorRed Hat Affected — Fixed in 9.0.0-10.7.el9_2 Patch available CNA
- Red Hat Enterprise Linux 6 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux 8 Advanced Virtualization VendorRed Hat Affected — Fixed in — No fix listed CNA
CPE names CNA · 9
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:/a:redhat:enterprise_linux:8::appstream | 8 | — | Red Hat |
| cpe:/a:redhat:enterprise_linux:8::crb | 8 | — | Red Hat |
| cpe:/a:redhat:enterprise_linux:9::appstream | 9 | — | Red Hat |
| cpe:/a:redhat:enterprise_linux:9::crb | 9 | — | Red Hat |
| cpe:/a:redhat:rhel_eus:9.2::appstream | 9.2 | — | Red Hat |
| cpe:/a:redhat:rhel_eus:9.2::crb | 9.2 | — | Red Hat |
| cpe:/o:redhat:rhel_els:6 | 6 | — | Red Hat |
| cpe:/o:redhat:rhel_els:7 | 7 | — | Red Hat |
| cpe:/a:redhat:advanced_virtualization:8::el8 | 8 | — | Red Hat |
- cpe:/a:redhat:enterprise_linux:8::appstream Versions 8 — ·Red Hat
- cpe:/a:redhat:enterprise_linux:8::crb Versions 8 — ·Red Hat
- cpe:/a:redhat:enterprise_linux:9::appstream Versions 9 — ·Red Hat
- cpe:/a:redhat:enterprise_linux:9::crb Versions 9 — ·Red Hat
- cpe:/a:redhat:rhel_eus:9.2::appstream Versions 9.2 — ·Red Hat
- cpe:/a:redhat:rhel_eus:9.2::crb Versions 9.2 — ·Red Hat
- cpe:/o:redhat:rhel_els:6 Versions 6 — ·Red Hat
- cpe:/o:redhat:rhel_els:7 Versions 7 — ·Red Hat
- cpe:/a:redhat:advanced_virtualization:8::el8 Versions 8 — ·Red Hat
Remediation
- Fix · CNA libvirt Fixed in 10.4.0
Red Hat 3 advisories
- RHSA-2024:4757 Released 2024-07-23 · Red Hat rating Moderatelibvirt security update
- Red Hat Enterprise Linux AppStream (v. 9) libvirt-10.0.0-6.6.el9_4, libvirt-client-10.0.0-6.6.el9_4, libvirt-client-qemu-10.0.0-6.6.el9_4 +25
- Red Hat Enterprise Linux CRB (v. 9) libvirt-daemon-plugin-sanlock-10.0.0-6.6.el9_4, libvirt-devel-10.0.0-6.6.el9_4, libvirt-docs-10.0.0-6.6.el9_4
- RHSA-2024:4432 Released 2024-07-09 · Red Hat rating Moderatelibvirt security update
- Red Hat CodeReady Linux Builder EUS (v.9.2) libvirt-client-qemu-9.0.0-10.7.el9_2, libvirt-devel-9.0.0-10.7.el9_2, libvirt-docs-9.0.0-10.7.el9_2 +1
- Red Hat Enterprise Linux AppStream EUS (v.9.2) libvirt-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 +19
- RHSA-2024:4351 Released 2024-07-08 · Red Hat rating Lowvirt:rhel and virt-devel:rhel security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 8) SLOF-20210217-2.module+el8.10.0+20141+6faa2812.noarch::virt:rhel, SLOF-20210217-2.module+el8.10.0+20141+6faa2812.src::virt:rhel, hivex-1.3.18-23.module+el8.9.0+18724+20190c23.aarch64::virt:rhel +47
- Red Hat Enterprise Linux CRB (v. 8) SLOF-20210217-2.module+el8.10.0+20141+6faa2812.src::virt-devel:rhel, hivex-1.3.18-23.module+el8.9.0+18724+20190c23.i686::virt-devel:rhel, hivex-devel-1.3.18-23.module+el8.9.0+18724+20190c23.i686::virt-devel:rhel +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 Advanced Virtualization | Affected | No fix planned: Will not fix |
| Red Hat CodeReady Linux Builder EUS (v.9.2) | Fixed | RHSA-2024:4432 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2024:4351 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:4757 |
| Red Hat Enterprise Linux AppStream EUS (v.9.2) | Fixed | RHSA-2024:4432 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:4351 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:4757 |
Timeline
- 2026-10-02 Threatist record created from CVE-2024-4418
- 2026-10-03 Alias added: GHSA-q262-3hfr-f5q4
References
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-4418 · CVE Program
- CVE-2024-4418 · NVD
- FIRST EPSS
- GHSA-q262-3hfr-f5q4 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-4418 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences