Descrizione
The OCI delta stream parser read sizes as guint64 but passed them to GLib I/O and allocation functions expecting gsize (32 bits on 32-bit systems), causing undersized allocations while subsequent operations use the original 64-bit size, leading to heap buffer overflows. An attacker controlling an OCI registry can craft a delta stream that triggers this during flatpak install/update, potentially achieving code execution on 32-bit systems.
Tipo di vulnerabilità
CWE-197
Numeric Truncation Error
Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità |
Modificare la memoria, Dipende dal contesto |
Come si previene
Sviluppo
Ensure that no casts, implicit or explicit, take place that move from a larger size primitive or a smaller size primitive.
Tutte le 76 CVE di tipo CWE-197, con andamento e prevenzione