1. Archivio CVE
  2. 2024
  3. CVE-2024-4418

CVE-2024-4418

6.2 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 6.2 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
– libvirt < 10.4.0 –
redhat advanced virtualization 8 –
redhat enterprise linux 8 –
redhat enterprise linux 8 –
redhat enterprise linux 9 –
redhat enterprise linux 9 –
redhat rhel els 6 –
redhat rhel els 7 –
redhat rhel eus 9.2 –
redhat rhel eus 9.2 –

Tipo di vulnerabilità

CWE-562 Return of Stack Variable Address

A function returns the address of a stack variable.

Impatto sui sistemi

AmbitoImpatto
Disponibilità, Integrità, Riservatezza Leggere la memoria, Modificare la memoria, Eseguire codice o comandi non autorizzati, Interruzione del servizio: arresto o riavvio

Come si previene

Sviluppo Fix the code so that it does not return a stack address.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 7 CVE di tipo CWE-562, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org