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

CVE-2021-35134

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

Descrizione

Due to insufficient validation of ELF headers, an Incorrect Calculation of Buffer Size can occur in Boot leading to memory corruption in Snapdragon Connectivity, Snapdragon Industrial IOT, Snapdragon Mobile

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
qualcomm qca6391 firmware tutte –
qualcomm qcm6490 firmware tutte –
qualcomm qcs6490 firmware tutte –
qualcomm qsm8350 firmware tutte –
qualcomm sd 8 gen1 5g firmware tutte –
qualcomm sd778g firmware tutte –
qualcomm sd780g firmware tutte –
qualcomm sd888 5g firmware tutte –
qualcomm sd888 firmware tutte –
qualcomm sm7315 firmware tutte –
qualcomm sm7325p firmware tutte –
qualcomm sm7450 firmware tutte –
qualcomm sm8475 firmware tutte –
qualcomm sm8475p firmware tutte –
qualcomm wcd9341 firmware tutte –
qualcomm wcd9370 firmware tutte –
qualcomm wcd9375 firmware tutte –
qualcomm wcd9380 firmware tutte –
qualcomm wcd9385 firmware tutte –
qualcomm wcn6740 firmware tutte –
qualcomm wcn6750 firmware tutte –
qualcomm wcn6850 firmware tutte –
qualcomm wcn6851 firmware tutte –
qualcomm wcn6855 firmware tutte –
qualcomm wcn6856 firmware tutte –
qualcomm wcn7850 firmware tutte –
qualcomm wcn7851 firmware tutte –
qualcomm wsa8830 firmware tutte –
qualcomm wsa8832 firmware tutte –
qualcomm wsa8835 firmware tutte –
Tutte le 426 vulnerabilità di Qualcomm Sd888 Firmware

Tipo di vulnerabilità

CWE-131 Incorrect Calculation of Buffer Size

The product does not correctly calculate the size to be used when allocating a buffer.

Impatto sui sistemi

AmbitoImpatto
Integrità, Disponibilità, Riservatezza Interruzione del servizio: arresto o riavvio, Eseguire codice o comandi non autorizzati, Leggere la memoria, Modificare la memoria

Come si previene

Sviluppo When allocating a buffer for the purpose of transforming, converting, or encoding an input, allocate enough memory to handle the largest possible encoding. For example, in a routine that converts & characters to & for HTML entity encoding, the output buffer needs to be at least 5 times as large as the input buffer.
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.
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.
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 When processing structured incoming data containing a size field followed by raw data, identify and resolve any inconsistencies between the size field and the actual size of the data (CWE-130).
Sviluppo When allocating memory that uses sentinels to mark the end of a data structure - such as NUL bytes in strings - make sure you also include the sentinel in your calculation of the total amount of memory that must be allocated.
Sviluppo Replace unbounded copy functions with analogous functions that support length arguments, such as strcpy with strncpy. Create these if they are not available.
Sviluppo Use sizeof() on the appropriate data type to avoid CWE-467.

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

Tutte le 183 CVE di tipo CWE-131, con andamento e prevenzione

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