Libvirt: stack use-after-free in virnetclientioeventloop()

Summary

CVECVE-2024-4418
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-05-08 03:15:07 UTC
Updated2026-11-05 14:16:57 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 6.2 MEDIUM from [email protected]

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

EPSS: 0.004860000 probability, percentile 0.419970000 (date 2026-11-05)

Problem Types: CWE-562 | CWE-562 Return of Stack Variable Address


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary6.2MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1CNACVSS6.2MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 8100020240606142719.489197e6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 8100020240606142719.489197e6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:10.0.0-6.6.el9_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support unaffected 0:9.0.0-10.7.el9_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8 Advanced Virtualization Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/security/cve/CVE-2024-4418 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2024:4432 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2024:4757 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
lists.fedoraproject.org/archives/list/[email protected]/messag... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
lists.fedoraproject.org/archives/list/[email protected]/messag... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
security.netapp.com/advisory/ntap-20250411-0002 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
access.redhat.com/errata/RHSA-2024:4351 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
bugzilla.redhat.com/show_bug.cgi af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Red Hat would like to thank Martin Širokov for reporting this issue. (en)

Additional Advisory Data

SourceTimeEvent
CNA2024-05-02T00:00:00.000ZReported to Red Hat.
CNA2024-05-02T00:00:00.000ZMade public.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report