Weaknesses of type CWE-367

682 results

Condição de corrida entre verificação e uso (TOCTOU)

A aplicação verifica uma condição (ex: permissão, existência de arquivo) e depois usa o recurso baseado naquela verificação, mas entre os dois momentos outro processo pode mudar o estado do recurso. O atacante explora a janela de tempo para alterar o que foi verificado, contornando a validação.

Example

Um programa verifica se um arquivo existe e tem permissão de leitura, depois o abre para processar. Entre a verificação e a abertura, um atacante pode trocar o arquivo por um link simbólico apontando para um arquivo sensível do sistema. O programa abre o link sem perceber a mudança.

How to mitigate

Use operações atômicas que combinam verificação e uso em uma única chamada de sistema (ex: open() com flags exclusivas, fstat() após abrir arquivo). Em casos de acesso a dados compartilhados, implemente locks ou transações que impeçam alterações entre a validação e o uso do recurso.

CVE-2022-23826LOWA TOCTOU (Time-Of-Check to Time-Of-Use) in the graphics interface may allow an attacker to load registers repeatedly creating a race conditiEPSS 0.1%CVE-2026-23786LOWAn issue was discovered in DPU in Samsung Mobile Processor Exynos 1280, 2200, 1380, 1480, 2400, 1580, 2500, 1680, and 2600. A TOCTOU race coEPSS 0.1%CVE-2022-25716MEDIUMTime-of-check Time-of-use Race Condition in Multimedia FrameworkEPSS 0.1%CVE-2026-18477MEDIUMTar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escapeEPSS 0.1%CVE-2025-27725MEDIUMTime-of-check time-of-use race condition for some ACAT before version 3.13 within Ring 3: User Applications may allow a denial of service. UEPSS 0.1%CVE-2025-54655HIGHRace condition vulnerability in the virtualization base module. Successful exploitation of this vulnerability may affect the confidentialityEPSS 0.1%CVE-2025-21485HIGHTime-of-check Time-of-use (TOCTOU) Race Condition in DSP ServiceEPSS 0.1%CVE-2026-20454MEDIUMIn geniezone, there is a possible out of bounds write due to a race condition. This could lead to local escalation of privilege if a malicioEPSS 0.1%CVE-2026-58716MEDIUMIn multiple locations, there is a possible time-of-check to time-of-use due to a race condition. This could lead to local escalation of privEPSS 0.1%CVE-2023-33119HIGHTime-of-check Time-of-use (TOCTOU) Race Condition in HypervisorEPSS 0.1%CVE-2024-45565HIGHTime-of-check Time-of-use (TOCTOU) Race Condition in Camera DriverEPSS 0.1%CVE-2025-21431MEDIUMTime-of-check Time-of-use (TOCTOU) Race Condition in Automotive OS PlatformEPSS 0.1%CVE-2025-20028HIGHTime-of-check time-of-use race condition in the WheaERST SMM module for some Intel(R) reference platforms may allow an escalation of privileEPSS 0.1%CVE-2024-53016MEDIUMTime-of-check Time-of-use (TOCTOU) Race Condition in Camera DriverEPSS 0.1%CVE-2024-53018MEDIUMTime-of-check Time-of-use (TOCTOU) Race Condition in Camera DriverEPSS 0.1%CVE-2024-38418HIGHTime-of-check Time-of-use (TOCTOU) Race Condition in Camera LinuxEPSS 0.1%CVE-2024-38407HIGHTime-of-check Time-of-use (TOCTOU) Race Condition in CameraEPSS 0.1%CVE-2024-38406HIGHTime-of-check Time-of-use (TOCTOU) Race Condition in CameraEPSS 0.1%CVE-2024-45560HIGHTime-of-check Time-of-use (TOCTOU) Race Condition in CameraEPSS 0.1%CVE-2026-25271HIGHTime-of-check Time-of-use (TOCTOU) Race Condition in DSP ServiceEPSS 0.1%