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

CVE-2021-3748

7.5 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H 7.5 – Alta

Descrizione

A use-after-free vulnerability was found in the virtio-net device of QEMU. It could occur when the descriptor's address belongs to the non direct access region, due to num_buffers being set after the virtqueue elem has been unmapped. A malicious guest could use this flaw to crash QEMU, resulting in a denial of service condition, or potentially execute code on the host with the privileges of the QEMU process.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
canonical ubuntu linux 18.04 –
canonical ubuntu linux 20.04 –
canonical ubuntu linux 21.10 –
debian debian linux 9.0 –
debian debian linux 10.0 –
fedoraproject fedora 34 –
qemu qemu >= 0.10.0 < 6.2.0 –
redhat enterprise linux 8.0 –
redhat enterprise linux advanced virtualization eus 8.4 –
Tutte le 419 vulnerabilità di Qemu

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.637 CVE di tipo CWE-416, con andamento e prevenzione

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