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

CVE-2021-46792

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

Descrizione

Time-of-check Time-of-use (TOCTOU) in the BIOS2PSP command may allow an attacker with a malicious BIOS to create a race condition causing the ASP bootloader to perform out-of-bounds SRAM reads upon an S3 resume event potentially leading to a denial of service.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
amd athlon gold 3150g firmware picassopi-fp5_1.0.0.4 –
amd athlon gold 3150ge firmware picassopi-fp5_1.0.0.4 –
amd athlon silver 3050ge firmware picassopi-fp5_1.0.0.4 –
amd ryzen 1200 (af) firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 1200 (af) firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 1600 (af) firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 1600 (af) firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2200g firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2200g firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2200ge firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2200ge firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2300x firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2300x firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2400g firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2400g firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2400ge firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2400ge firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2500x firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2500x firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2600 firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2600 firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2600e firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2600e firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2600x firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2600x firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2700 firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2700 firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2700e firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2700e firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2700x firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2700x firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2920x firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2920x firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2950x firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2950x firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2970wx firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2970wx firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 2990wx firmware pinnaclepi-am4_1.0.0.7 –
amd ryzen 2990wx firmware raven-fp5-am4_1.0.0.9 –
amd ryzen 3100 firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3100 firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3100 firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3300x firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3300x firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3300x firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3500 firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3500 firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3500 firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3500x firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3500x firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3500x firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3600 firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3600 firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3600 firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3600x firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3600x firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3600x firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3600xt firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3600xt firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3600xt firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3800x firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3800x firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3800x firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3800xt firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3800xt firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3800xt firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3900 firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3900 firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3900 firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3900x firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3900x firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3900x firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3900xt firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3900xt firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3900xt firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 3950x firmware comboam4v2_pi_1.2.0.5 –
amd ryzen 3950x firmware picasso_pi-fp5_1.0.0.4 –
amd ryzen 3950x firmware renoirpi-fp6_1.0.0.7 –
amd ryzen 5300g firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5300ge firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5500 firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5600 firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5600g firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5600ge firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5600x firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5700g firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5700ge firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5700x firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5800 firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5800x firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5800x3d firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5900 firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5900x firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5945wx firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5950x firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5955wx firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5965wx firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5975wx firmware cezannepi-fp6_1.0.0.6 –
amd ryzen 5995wx firmware cezannepi-fp6_1.0.0.6 –
Tutte le 11 vulnerabilità di Amd Ryzen 3100 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