1. Archivio CVE
  2. 2021
  3. CVE-2021-3975

CVE-2021-3975

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

Descrizione

A use-after-free flaw was found in libvirt. The qemuMonitorUnregister() function in qemuProcessHandleMonitorEOF is called using multiple threads without being adequately protected by a monitor lock. This flaw could be triggered by the virConnectGetAllDomainStats API when the guest is shutting down. An unprivileged client with a read-only connection could use this flaw to perform a denial of service attack by causing the libvirt daemon to crash.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
canonical ubuntu linux 21.10 –
debian debian linux 10.0 –
debian debian linux 11.0 –
fedoraproject fedora 35 –
netapp ontap select deploy administration utility tutte –
redhat codeready linux builder tutte –
redhat enterprise linux 8.0 –
redhat enterprise linux eus 8.6 –
redhat enterprise linux for ibm z systems 8.0 –
redhat enterprise linux for ibm z systems eus 8.6 –
redhat enterprise linux for power little endian 8.0 –
redhat enterprise linux for power little endian eus 8.6 –
redhat enterprise linux server for power little endian update services for sap solutions 8.6 –
redhat enterprise linux server tus 8.6 –
redhat libvirt < 7.1.0 –
Tutte le 73 vulnerabilità di Redhat Libvirt

Tipo di vulnerabilità

CWE-416 Uso di memoria dopo la liberazione (use after free)

Il prodotto usa o fa riferimento a un’area di memoria dopo averla liberata. Nel frattempo quell’area può essere stata assegnata ad altro: ogni operazione fatta con il vecchio puntatore agisce su dati che non le appartengono più.

Impatto sui sistemi

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

Come si previene

Architettura e progettazione · Scelta del linguaggio Choose a language that provides automatic memory management.
Sviluppo · Riduzione della superficie di attacco When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

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

Tutte le 9.638 CVE di tipo CWE-416, con andamento e prevenzione

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