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

CVE-2021-26356

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

Descrizione

A TOCTOU in ASP bootloader may allow an attacker to tamper with the SPI ROM following data read to memory potentially resulting in S3 data corruption and information disclosure.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
amd epyc 7001 firmware < naplespi_1.0.0.h –
amd epyc 7002 firmware < romepi_1.0.0.d –
amd epyc 7232p firmware < romepi_1.0.0.d –
amd epyc 7251 firmware < naplespi_1.0.0.h –
amd epyc 7252 firmware < romepi_1.0.0.d –
amd epyc 7261 firmware < naplespi_1.0.0.h –
amd epyc 7262 firmware < romepi_1.0.0.d –
amd epyc 7272 firmware < romepi_1.0.0.d –
amd epyc 7281 firmware < naplespi_1.0.0.h –
amd epyc 7282 firmware < romepi_1.0.0.d –
amd epyc 72f3 firmware < milanpi_1.0.0.6 –
amd epyc 7301 firmware < naplespi_1.0.0.h –
amd epyc 7302 firmware < romepi_1.0.0.d –
amd epyc 7302p firmware < romepi_1.0.0.d –
amd epyc 7313 firmware < milanpi_1.0.0.6 –
amd epyc 7313p firmware < milanpi_1.0.0.6 –
amd epyc 7343 firmware < milanpi_1.0.0.6 –
amd epyc 7351 firmware < naplespi_1.0.0.h –
amd epyc 7351p firmware < naplespi_1.0.0.h –
amd epyc 7352 firmware < romepi_1.0.0.d –
amd epyc 7371 firmware < naplespi_1.0.0.h –
amd epyc 7373x firmware < milanpi_1.0.0.6 –
amd epyc 7401 firmware < naplespi_1.0.0.h –
amd epyc 7401p firmware < naplespi_1.0.0.h –
amd epyc 7402 firmware < romepi_1.0.0.d –
amd epyc 7402p firmware < romepi_1.0.0.d –
amd epyc 7413 firmware < milanpi_1.0.0.6 –
amd epyc 7443 firmware < milanpi_1.0.0.6 –
amd epyc 7443p firmware < milanpi_1.0.0.6 –
amd epyc 7451 firmware < naplespi_1.0.0.h –
amd epyc 7452 firmware < romepi_1.0.0.d –
amd epyc 7453 firmware < milanpi_1.0.0.6 –
amd epyc 7473x firmware < milanpi_1.0.0.6 –
amd epyc 74f3 firmware < milanpi_1.0.0.6 –
amd epyc 7501 firmware < naplespi_1.0.0.h –
amd epyc 7502 firmware < romepi_1.0.0.d –
amd epyc 7513 firmware < milanpi_1.0.0.6 –
amd epyc 7532 firmware < romepi_1.0.0.d –
amd epyc 7542 firmware < romepi_1.0.0.d –
amd epyc 7543 firmware < milanpi_1.0.0.6 –
amd epyc 7543p firmware < milanpi_1.0.0.6 –
amd epyc 7551 firmware < naplespi_1.0.0.h –
amd epyc 7551p firmware < naplespi_1.0.0.h –
amd epyc 7552 firmware < romepi_1.0.0.d –
amd epyc 7573x firmware < milanpi_1.0.0.6 –
amd epyc 75f3 firmware < milanpi_1.0.0.6 –
amd epyc 7601 firmware < naplespi_1.0.0.h –
amd epyc 7642 firmware < romepi_1.0.0.d –
amd epyc 7643 firmware < milanpi_1.0.0.6 –
amd epyc 7662 firmware < romepi_1.0.0.d –
amd epyc 7663 firmware < milanpi_1.0.0.6 –
amd epyc 7702 firmware < romepi_1.0.0.d –
amd epyc 7702p firmware < romepi_1.0.0.d –
amd epyc 7713 firmware < milanpi_1.0.0.6 –
amd epyc 7713p firmware < milanpi_1.0.0.6 –
amd epyc 7742 firmware < romepi_1.0.0.d –
amd epyc 7763 firmware < milanpi_1.0.0.6 –
amd epyc 7773x firmware < milanpi_1.0.0.6 –
amd epyc 7f32 firmware < romepi_1.0.0.d –
amd epyc 7f52 firmware < romepi_1.0.0.d –
amd epyc 7f72 firmware < romepi_1.0.0.d –
amd epyc 7h12 firmware < romepi_1.0.0.d –
amd ryzen 3 3100 firmware tutte –
amd ryzen 3 3300x firmware tutte –
amd ryzen 5 3500 firmware tutte –
amd ryzen 5 3500x firmware tutte –
amd ryzen 5 3600 firmware tutte –
amd ryzen 5 3600x firmware tutte –
amd ryzen 5 3600xt firmware tutte –
amd ryzen 5 5500 firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 5 5600 firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 5 5600x firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 7 3700xt firmware tutte –
amd ryzen 7 3800x firmware tutte –
amd ryzen 7 3800xt firmware tutte –
amd ryzen 7 5700x firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 7 5800 firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 7 5800x firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 7 5800x3d firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 9 3900 firmware tutte –
amd ryzen 9 3900x firmware tutte –
amd ryzen 9 3950x firmware tutte –
amd ryzen 9 3950xt firmware tutte –
amd ryzen 9 5900 firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 9 5900x firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen 9 5950x firmware < comboam4_v2_pi_1.2.0.6 –
amd ryzen threadripper 3960x firmware tutte –
amd ryzen threadripper 3970x firmware tutte –
amd ryzen threadripper 3990x firmware tutte –
amd ryzen threadripper pro 3945wx firmware tutte –
amd ryzen threadripper pro 3955wx firmware tutte –
amd ryzen threadripper pro 3975wx firmware tutte –
amd ryzen threadripper pro 3995wx firmware tutte –
amd ryzen threadripper pro 5945wx firmware tutte –
amd ryzen threadripper pro 5955wx firmware tutte –
amd ryzen threadripper pro 5965wx firmware tutte –
amd ryzen threadripper pro 5975wx firmware tutte –
amd ryzen threadripper pro 5995wx firmware tutte –
Tutte le 73 vulnerabilità di Amd Epyc 7302 Firmware

Tipo di vulnerabilità

CWE-367 Race condition TOCTOU (Time-of-check Time-of-use)

Il prodotto controlla lo stato di una risorsa prima di usarla, ma lo stato può cambiare tra il controllo e l’uso, rendendo il controllo inutile.

Impatto sui sistemi

AmbitoImpatto
Integrità, Altro Alterare la logica di esecuzione, Stato imprevisto
Integrità, Altro Modificare i dati dell’applicazione, Modificare file o cartelle, Modificare la memoria, Altro
Integrità, Altro Altro
Non ripudio Nascondere le proprie attività
Non ripudio, Altro Altro
Altro Stato imprevisto

Come si previene

Sviluppo The most basic advice for TOCTOU vulnerabilities is to not perform a check before the use. This does not resolve the underlying issue of the execution of a function on a resource whose state and identity cannot be assured, but it does help to limit the false sense of security given by the check.
Sviluppo When the file being altered is owned by the current user and group, set the effective gid and uid to that of the current user and group when executing this statement.
Architettura e progettazione Limit the interleaving of operations on files from multiple processes.
Sviluppo · Architettura e progettazione If you cannot perform operations atomically and you must share access to the resource between multiple processes or threads, then try to limit the amount of time (CPU cycles) between the check and use of the resource. This will not fix the problem, but it could make it more difficult for an attack to succeed.
Sviluppo Recheck the resource after the use call to verify that the action was taken appropriately.
Architettura e progettazione Ensure that some environmental locking mechanism can be used to protect resources effectively.
Sviluppo Ensure that locking occurs before the check, as opposed to afterwards, such that the resource, as checked, is the same as it is when in use.

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

Tutte le 922 CVE di tipo CWE-367, con andamento e prevenzione

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