1. Archivio CVE
  2. 2020
  3. CVE-2020-28327

CVE-2020-28327

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

Descrizione

A res_pjsip_session crash was discovered in Asterisk Open Source 13.x before 13.37.1, 16.x before 16.14.1, 17.x before 17.8.1, and 18.x before 18.0.1. and Certified Asterisk before 16.8-cert5. Upon receiving a new SIP Invite, Asterisk did not return the created dialog locked or referenced. This caused a gap between the creation of the dialog object, and its next use by the thread that created it. Depending on some off-nominal circumstances and timing, it was possible for another thread to free said dialog in this gap. Asterisk could then crash when the dialog object, or any of its dependent objects, were dereferenced or accessed next by the initial-creation thread. Note, however, that this crash can only occur when using a connection-oriented protocol (e.g., TCP or TLS, but not UDP) for SIP transport. Also, the remote client must be authenticated, or Asterisk must be configured for anonymous calling.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
digium certified asterisk 16.8 –
digium certified asterisk 16.8 cert1-rc1 –
digium certified asterisk 16.8 cert1-rc2 –
digium certified asterisk 16.8 cert1-rc3 –
digium certified asterisk 16.8 cert1-rc4 –
digium certified asterisk 16.8 cert2 –
digium certified asterisk 16.8 cert3 –
digium certified asterisk 16.8 cert4 –
digium certified asterisk 16.8 cert4-rc1 –
digium certified asterisk 16.8 cert4-rc2 –
digium certified asterisk 16.8 cert4-rc3 –
digium certified asterisk 16.8 cert4-rc4 –
sangoma asterisk >= 13.0.0 < 13.37.1 –
sangoma asterisk >= 16.0.0 < 16.14.1 –
sangoma asterisk >= 17.0.0 < 17.8.1 –
sangoma asterisk >= 18.0.0 < 18.0.1 –
Tutte le 51 vulnerabilità di Digium Certified Asterisk
Tutte le 28 vulnerabilità di Sangoma Asterisk

Tipo di vulnerabilità

CWE-404 Chiusura o rilascio improprio di una risorsa

Il prodotto non rilascia, o rilascia in modo errato, una risorsa prima che venga resa disponibile per un nuovo uso.

Impatto sui sistemi

AmbitoImpatto
Disponibilità, Altro Interruzione del servizio: esaurimento di risorse, Dipende dal contesto
Riservatezza Leggere i dati dell’applicazione

Come si previene

Requisiti · Scelta del linguaggio Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
Sviluppo It is good practice to be responsible for freeing all resources you allocate and to be consistent with how and where you free memory in a function. If you allocate memory that you intend to free upon completion of the function, you must be sure to free the memory at all exit points for that function including error conditions.
Sviluppo Memory should be allocated/freed using matching functions such as malloc/free, new/delete, and new[]/delete[].
Sviluppo When releasing a complex object or structure, ensure that you properly dispose of all of its member components, not just the object itself.

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

Tutte le 736 CVE di tipo CWE-404, con andamento e prevenzione

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