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

CVE-2021-23840

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

Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash. OpenSSL versions 1.1.1i and below are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1j. OpenSSL versions 1.0.2x and below are affected by this issue. However OpenSSL 1.0.2 is out of support and no longer receiving public updates. Premium support customers of OpenSSL 1.0.2 should upgrade to 1.0.2y. Other users should upgrade to 1.1.1j. Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i). Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x).

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 10.0 –
fujitsu m10-1 firmware < xcp2410 –
fujitsu m10-1 firmware < xcp3110 –
fujitsu m10-4 firmware < xcp2410 –
fujitsu m10-4 firmware < xcp3110 –
fujitsu m10-4s firmware < xcp2410 –
fujitsu m10-4s firmware < xcp3110 –
fujitsu m12-1 firmware < xcp2410 –
fujitsu m12-1 firmware < xcp3110 –
fujitsu m12-2 firmware < xcp2410 –
fujitsu m12-2 firmware < xcp3110 –
fujitsu m12-2s firmware < xcp2410 –
fujitsu m12-2s firmware < xcp3110 –
mcafee epolicy orchestrator < 5.10.0 –
mcafee epolicy orchestrator 5.10.0 –
mcafee epolicy orchestrator 5.10.0 update_1 –
mcafee epolicy orchestrator 5.10.0 update_10 –
mcafee epolicy orchestrator 5.10.0 update_2 –
mcafee epolicy orchestrator 5.10.0 update_3 –
mcafee epolicy orchestrator 5.10.0 update_4 –
mcafee epolicy orchestrator 5.10.0 update_5 –
mcafee epolicy orchestrator 5.10.0 update_6 –
mcafee epolicy orchestrator 5.10.0 update_7 –
mcafee epolicy orchestrator 5.10.0 update_8 –
mcafee epolicy orchestrator 5.10.0 update_9 –
nodejs node.js >= 10.0.0 <= 10.12.0 –
nodejs node.js >= 10.13.0 < 10.24.0 –
nodejs node.js >= 12.0.0 <= 12.12.0 –
nodejs node.js >= 12.13.0 < 12.21.0 –
nodejs node.js >= 14.0.0 <= 14.14.0 –
nodejs node.js >= 15.0.0 < 15.10.0 –
nodejs node.js 14.15.0 –
openssl openssl >= 1.0.2 < 1.0.2y –
openssl openssl >= 1.1.1 < 1.1.1j –
oracle business intelligence 5.5.0.0.0 –
oracle business intelligence 5.9.0.0.0 –
oracle business intelligence 12.2.1.3.0 –
oracle business intelligence 12.2.1.4.0 –
oracle communications cloud native core policy 1.15.0 –
oracle enterprise manager for storage management 13.4.0.0 –
oracle enterprise manager ops center 12.4.0.0 –
oracle graalvm 19.3.5 –
oracle graalvm 20.3.1.2 –
oracle graalvm 21.0.0.2 –
oracle jd edwards enterpriseone tools < 9.2.6.0 –
oracle jd edwards world security a9.4 –
oracle mysql server < 5.7.33 –
oracle mysql server >= 8.0.15 < 8.0.23 –
oracle nosql database < 20.3 –
tenable log correlation engine < 6.0.8 –
tenable nessus network monitor 5.11.0 –
tenable nessus network monitor 5.11.1 –
tenable nessus network monitor 5.12.0 –
tenable nessus network monitor 5.12.1 –
tenable nessus network monitor 5.13.0 –
Tutte le 340 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.554 CVE di tipo CWE-190, con andamento e prevenzione

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