Descrizione
libvorbis through 1.3.7 contains a stack buffer overflow vulnerability in _ov_getlap() in lib/vorbisfile.c that passes a negative sample count from vorbis_synthesis_lapout() to memcpy(). Attackers can supply a short, valid Ogg Vorbis file with suitable block sizes to overwrite stack frames and crash applications performing two consecutive lapped seeks.
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