Descrizione
RAUC controls the update process on embedded Linux systems. Prior to version 1.15.2, RAUC bundles using the 'plain' format exceeding a payload size of 2 GiB cause an integer overflow which results in a signature which covers only the first few bytes of the payload. Given such a bundle with a legitimate signature, an attacker can modify the part of the payload which is not covered by the signature. This issue has been patched in version 1.15.2.
Tipo di vulnerabilità
CWE-196
Unsigned to Signed Conversion Error
The product uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value if the value of the unsigned primitive can not be represented using a signed primitive.
Impatto sui sistemi
| Ambito | Impatto |
| Disponibilità |
Interruzione del servizio: arresto o riavvio |
| Integrità |
Modificare la memoria |
| Integrità, Riservatezza, Disponibilità, Controllo degli accessi |
Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione |
Come si previene
Requisiti
Choose a language which is not subject to these casting flaws.
Architettura e progettazione
Design object accessor functions to implicitly check values for valid sizes. Ensure that all functions which will be used as a size are checked previous to use as a size. If the language permits, throw exceptions rather than using in-band errors.
Sviluppo
Error check the return values of all functions. Be aware of implicit casts made, and use unsigned variables for sizes if at all possible.
Tutte le 6 CVE di tipo CWE-196, con andamento e prevenzione