1. Archivio CVE
  2. 2017
  3. CVE-2017-8905

CVE-2017-8905

8.8 Gravità alta CVSS v3.0 · fonte NVD CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H 8.8 – Alta

Descrizione

Xen through 4.6.x on 64-bit platforms mishandles a failsafe callback, which might allow PV guest OS users to execute arbitrary code on the host OS, aka XSA-215.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
xen xen 4.6.0 –
xen xen 4.6.1 –
xen xen 4.6.2 –
xen xen 4.6.3 –
xen xen 4.6.4 –
xen xen 4.6.5 –
Tutte le 527 vulnerabilità di Xen

Tipo di vulnerabilità

CWE-682 Incorrect Calculation

The product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: arresto o riavvio
Integrità, Riservatezza, Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento di risorse, Eseguire codice o comandi non autorizzati
Controllo degli accessi Ottenere privilegi o assumere un’altra identità
Controllo degli accessi Aggirare i meccanismi di protezione

Come si previene

Sviluppo Understand your programming language's underlying representation and how it interacts with numeric calculation. Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, not-a-number calculations, and how your language handles numbers that are too large or too small for its underlying 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.
Sviluppo Use the appropriate type for the desired action. For example, in C/C++, only use unsigned types for values that could never be negative, such as height, width, or other numbers related to quantity.
Architettura e progettazione · Scelta del linguaggio Use languages, 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++).
Architettura e progettazione · Librerie o framework Use languages, 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 · 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 158 CVE di tipo CWE-682, con andamento e prevenzione

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