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

CVE-2017-18347

4.6 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 4.6 – Media

Descrizione

Incorrect access control in RDP Level 1 on STMicroelectronics STM32F0 series devices allows physically present attackers to extract the device's protected firmware via a special sequence of Serial Wire Debug (SWD) commands because there is a race condition between full initialization of the SWD interface and the setup of flash protection.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
st stm32f030c6 firmware tutte –
st stm32f030c8 firmware tutte –
st stm32f030cc firmware tutte –
st stm32f030f4 firmware tutte –
st stm32f030k6 firmware tutte –
st stm32f030r8 firmware tutte –
st stm32f030rc firmware tutte –
st stm32f031c4 firmware tutte –
st stm32f031c6 firmware tutte –
st stm32f031e6 firmware tutte –
st stm32f031f4 firmware tutte –
st stm32f031f6 firmware tutte –
st stm32f031g4 firmware tutte –
st stm32f031g6 firmware tutte –
st stm32f031k4 firmware tutte –
st stm32f038c6 firmware tutte –
st stm32f038e6 firmware tutte –
st stm32f038f6 firmware tutte –
st stm32f038g6 firmware tutte –
st stm32f038k6 firmware tutte –
st stm32f042c4 firmware tutte –
st stm32f042c6 firmware tutte –
st stm32f042f4 firmware tutte –
st stm32f042f6 firmware tutte –
st stm32f042g4 firmware tutte –
st stm32f042g6 firmware tutte –
st stm32f042k4 firmware tutte –
st stm32f042k6 firmware tutte –
st stm32f042t6 firmware tutte –
st stm32f048c6 firmware tutte –
st stm32f048g6 firmware tutte –
st stm32f048t6 firmware tutte –
st stm32f051c4 firmware tutte –
st stm32f051c6 firmware tutte –
st stm32f051c8 firmware tutte –
st stm32f051k4 firmware tutte –
st stm32f051k6 firmware tutte –
st stm32f051k8 firmware tutte –
st stm32f051r4 firmware tutte –
st stm32f051r6 firmware tutte –
st stm32f051r8 firmware tutte –
st stm32f051t8 firmware tutte –
st stm32f058c8 firmware tutte –
st stm32f058r8 firmware tutte –
st stm32f058t8 firmware tutte –
st stm32f070c6 firmware tutte –
st stm32f070cb firmware tutte –
st stm32f070f6 firmware tutte –
st stm32f070rb firmware tutte –
st stm32f071c8 firmware tutte –
st stm32f071cb firmware tutte –
st stm32f071rb firmware tutte –
st stm32f071v8 firmware tutte –
st stm32f071vb firmware tutte –
st stm32f072c8 firmware tutte –
st stm32f072cb firmware tutte –
st stm32f072r8 firmware tutte –
st stm32f072rb firmware tutte –
st stm32f072v8 firmware tutte –
st stm32f072vb firmware tutte –
st stm32f078cb firmware tutte –
st stm32f078rb firmware tutte –
st stm32f078vb firmware tutte –
st stm32f091cb firmware tutte –
st stm32f091cc firmware tutte –
st stm32f091rb firmware tutte –
st stm32f091rc firmware tutte –
st stm32f091vb firmware tutte –
st stm32f091vc firmware tutte –
st stm32f098cc firmware tutte –
st stm32f098rc firmware tutte –
st stm32f098vc firmware tutte –

Tipo di vulnerabilità

CWE-362 Race condition: esecuzione concorrente con sincronizzazione impropria

Il prodotto contiene una sequenza di codice che ha bisogno di un accesso esclusivo e temporaneo a una risorsa condivisa, ma esiste un intervallo in cui un’altra sequenza eseguita in parallelo può modificarla.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: esaurimento di risorse
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: instabilità
Riservatezza, Integrità Leggere file o cartelle, Leggere i dati dell’applicazione
Controllo degli accessi Eseguire codice o comandi non autorizzati, Ottenere privilegi o assumere un’altra identità, Aggirare i meccanismi di protezione

Come si previene

Architettura e progettazione In languages that support it, use synchronization primitives. Only wrap these around critical code to minimize the impact on performance.
Architettura e progettazione Use thread-safe capabilities such as the data access abstraction in Spring.
Architettura e progettazione Minimize the usage of shared resources in order to remove as much complexity as possible from the control flow and to reduce the likelihood of unexpected conditions occurring. Additionally, this will minimize the amount of synchronization necessary and may even help to reduce the likelihood of a denial of service where an attacker may be able to repeatedly trigger a critical section (CWE-400).
Sviluppo When using multithreading and operating on shared variables, only use thread-safe functions.
Sviluppo Use atomic operations on shared variables. Be wary of innocent-looking constructs such as x++. This may appear atomic at the code layer, but it is actually non-atomic at the instruction layer, since it involves a read, followed by a computation, followed by a write.
Sviluppo Use a mutex if available, but be sure to avoid related weaknesses such as CWE-412.
Sviluppo Avoid double-checked locking (CWE-609) and other implementation errors that arise when trying to avoid the overhead of synchronization.
Sviluppo Disable interrupts or signals over critical parts of the code, but also make sure that the code does not go into a large or infinite loop.

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

Tutte le 2.920 CVE di tipo CWE-362, con andamento e prevenzione

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