CVE-2024-4418

medium

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.

References

https://bugzilla.redhat.com/show_bug.cgi?id=2278616

https://access.redhat.com/security/cve/CVE-2024-4418

https://access.redhat.com/errata/RHSA-2024:4757

https://access.redhat.com/errata/RHSA-2024:4432

https://access.redhat.com/errata/RHSA-2024:4351

Details

Source: Mitre, NVD

Published: 2024-05-08

Updated: 2024-09-13

Risk Information

CVSS v2

Base Score: 4.9

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:N/A:C

Severity: Medium

CVSS v3

Base Score: 6.2

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Severity: Medium