1. Archivio CVE
  2. 2016
  3. CVE-2016-2105

CVE-2016-2105

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

Descrizione

Integer overflow in the EVP_EncodeUpdate function in crypto/evp/encode.c in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h allows remote attackers to cause a denial of service (heap memory corruption) via a large amount of binary data.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
apple mac os x 10.11.5 –
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
canonical ubuntu linux 15.10 –
canonical ubuntu linux 16.04 –
debian debian linux 8.0 –
nodejs node.js >= 0.10.0 < 0.10.45 –
nodejs node.js >= 0.12.0 < 0.12.14 –
nodejs node.js >= 4.0.0 <= 4.1.2 –
nodejs node.js >= 4.2.0 < 4.4.4 –
nodejs node.js >= 5.0.0 < 5.11.1 –
nodejs node.js 6.0.0 –
openssl openssl 1.0.1 –
openssl openssl 1.0.1 beta1 –
openssl openssl 1.0.1 beta2 –
openssl openssl 1.0.1 beta3 –
openssl openssl 1.0.1a –
openssl openssl 1.0.1b –
openssl openssl 1.0.1c –
openssl openssl 1.0.1d –
openssl openssl 1.0.1e –
openssl openssl 1.0.1f –
openssl openssl 1.0.1g –
openssl openssl 1.0.1h –
openssl openssl 1.0.1i –
openssl openssl 1.0.1j –
openssl openssl 1.0.1k –
openssl openssl 1.0.1l –
openssl openssl 1.0.1m –
openssl openssl 1.0.1n –
openssl openssl 1.0.1o –
openssl openssl 1.0.1p –
openssl openssl 1.0.1q –
openssl openssl 1.0.1r –
openssl openssl 1.0.1s –
openssl openssl 1.0.2 –
openssl openssl 1.0.2 beta1 –
openssl openssl 1.0.2 beta2 –
openssl openssl 1.0.2 beta3 –
openssl openssl 1.0.2a –
openssl openssl 1.0.2b –
openssl openssl 1.0.2c –
openssl openssl 1.0.2d –
openssl openssl 1.0.2e –
openssl openssl 1.0.2f –
openssl openssl 1.0.2g –
opensuse leap 42.1 –
opensuse opensuse 13.2 –
oracle mysql >= 5.6.0 <= 5.6.30 –
oracle mysql >= 5.7.0 <= 5.7.12 –
redhat enterprise linux desktop 6.0 –
redhat enterprise linux desktop 7.0 –
redhat enterprise linux hpc node 6 –
redhat enterprise linux hpc node 7.0 –
redhat enterprise linux hpc node eus 7.2 –
redhat enterprise linux server 6.0 –
redhat enterprise linux server 7.0 –
redhat enterprise linux server aus 7.2 –
redhat enterprise linux server eus 7.2 –
redhat enterprise linux workstation 6.0 –
redhat enterprise linux workstation 7.0 –
Tutte le 336 vulnerabilità di Openssl

Tipo di vulnerabilità

CWE-190 Integer overflow o wraparound

Il prodotto esegue un calcolo che può superare il valore massimo rappresentabile da un intero, mentre la logica presume che il risultato sia sempre più grande del valore iniziale. In quel caso il valore può diventare molto piccolo o negativo.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: instabilità
Integrità Modificare la memoria
Riservatezza, Disponibilità, Controllo degli accessi Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione
Disponibilità, Altro Alterare la logica di esecuzione, Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della CPU
Controllo degli accessi Aggirare i meccanismi di protezione
Controllo degli accessi Aggirare i meccanismi di protezione, Interruzione del servizio: arresto o riavvio

Come si previene

Requisiti Ensure that all protocols are strictly defined, such that all out-of-bounds behavior can be identified simply, and require strict conformance to the protocol.
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. If possible, choose a language or compiler that performs automatic bounds checking.
Architettura e progettazione · Librerie o framework Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Use libraries or frameworks that make it easier to handle numbers without unexpected consequences. Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++).
Sviluppo · Validazione dell’input Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range. Use unsigned integers where possible. This makes it easier to perform validation for integer overflows. When signed integers are required, ensure that the range check includes minimum values as well as maximum values.
Sviluppo Understand the programming language's underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, not-a-number calculations, and how the language handles numbers that are too large or too small for its underlying representation. Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.
Architettura e progettazione Per ogni controllo di sicurezza eseguito lato client, ripeti lo stesso controllo lato server, per evitare CWE-602: un attaccante può aggirare i controlli del client modificando i valori dopo il controllo o eliminando del tutto i controlli dal client, e inviare poi al server i valori modificati.
Sviluppo · Hardening della compilazione Examine compiler warnings closely and eliminate problems with potential security implications, such as signed / unsigned mismatch in memory operations, or use of uninitialized variables. Even if the weakness is rarely exploitable, a single failure may lead to the compromise of the entire system.

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

Tutte le 3.543 CVE di tipo CWE-190, con andamento e prevenzione

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