Descrizione
Asterisk is an open source private branch exchange and telephony toolkit. From 21.0.0-pre1 until Asterisk 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 22.8-cert3, the `chan_ooh323` `Q.931 party-number parser` lacks the `CVE-2022-37325` fix because that fix was never forward-ported from Asterisk 20 to later versions. Malformed Q.931 elements in an `OOH323 request` can therefore crash Asterisk. This issue affects Asterisk versions greater than 20. The `chan_ooh323` addon channel driver must be explicitly compiled and installed, which is not the default, and its port must be publicly reachable. This issue is fixed in Asterisk 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 22.8-cert3.
Tipo di vulnerabilità
CWE-839
Numeric Range Comparison Without Minimum Check
The product checks a value to ensure that it is less than or equal to a maximum, but it does not also verify that the value is greater than or equal to the minimum.
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza, Integrità |
Modificare la memoria, Leggere la memoria |
| Disponibilità |
Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: esaurimento di risorse |
| Integrità, Riservatezza, Disponibilità |
Modificare i dati dell’applicazione, Eseguire codice o comandi non autorizzati |
| Integrità |
Dipende dal contesto, Stato imprevisto |
Come si previene
Sviluppo · Conversione in valori ammessi
If the number to be used is always expected to be positive, change the variable type from signed to unsigned or size_t.
Sviluppo · Validazione dell’input
If the number to be used could have a negative value based on the specification (thus requiring a signed value), but the number should only be positive to preserve code correctness, then include a check to ensure that the value is positive.
Tutte le 6 CVE di tipo CWE-839, con andamento e prevenzione