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

CVE-2021-22945

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

Descrizione

When sending data to an MQTT server, libcurl <= 7.73.0 and 7.78.0 could in some circumstances erroneously keep a pointer to an already freed memory area and both use that again in a subsequent call to send data and also free it *again*.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
apple macos >= 12.0.0 < 12.3 –
debian debian linux 11.0 –
fedoraproject fedora 33 –
fedoraproject fedora 35 –
haxx libcurl >= 7.73.0 <= 7.78.0 –
netapp cloud backup tutte –
netapp clustered data ontap tutte –
netapp h300e firmware tutte –
netapp h300s firmware tutte –
netapp h410s firmware tutte –
netapp h500e firmware tutte –
netapp h500s firmware tutte –
netapp h700e firmware tutte –
netapp h700s firmware tutte –
netapp solidfire baseboard management controller firmware tutte –
oracle mysql server >= 5.7.0 <= 5.7.35 –
oracle mysql server >= 8.0.0 <= 8.0.26 –
siemens sinec ins < 1.0.1.1 –
splunk universal forwarder >= 8.2.0 < 8.2.12 –
splunk universal forwarder >= 9.0.0 < 9.0.6 –
splunk universal forwarder 9.1.0 –
Tutte le 61 vulnerabilità di Haxx Libcurl

Tipo di vulnerabilità

CWE-415 Doppia liberazione della memoria (double free)

Il prodotto chiama due volte free() sullo stesso indirizzo di memoria.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità Modificare la memoria, Eseguire codice o comandi non autorizzati

Come si previene

Architettura e progettazione Choose a language that provides automatic memory management.
Sviluppo Ensure that each allocation is freed only once. After freeing a chunk, set the pointer to NULL to ensure the pointer cannot be freed again. In complicated error conditions, be sure that clean-up routines respect the state of allocation properly. If the language is object oriented, ensure that object destructors delete each chunk of memory only once.
Sviluppo Use a static analysis tool to find double free instances.

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

Tutte le 968 CVE di tipo CWE-415, con andamento e prevenzione

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