Falhas do tipo CWE-366

18 resultados

Condição de corrida entre threads

Fraqueza que ocorre quando múltiplas threads acessam e modificam o mesmo recurso compartilhado sem sincronização adequada, causando estados inconsistentes ou comportamentos impredizíveis. O resultado depende da ordem aleatória de execução das threads, criando uma janela onde dados podem ser lidos ou gravados em estados intermediários.

Exemplo

Duas threads incrementam simultaneamente um contador de banco de dados sem usar locks: Thread A lê valor 100, Thread B também lê 100, ambas incrementam para 101 e gravam — resultado esperado era 102. Ou em autenticação: uma thread verifica se usuário existe enquanto outra o deleta, causando acesso com credenciais inválidas.

Como mitigar

Use mecanismos de sincronização (mutex, semáforo, RWLock) ao acessar dados compartilhados; prefira estruturas thread-safe da linguagem (ConcurrentHashMap em Java, threading.Lock em Python); minimize a extensão de seções críticas e teste com ferramentas de detecção de race conditions (ThreadSanitizer, Helgrind).

CVE-2021-26569CRITICALRace Condition within a Thread vulnerability in iscsi_snapshot_comm_core in Synology DiskStation Manager (DSM) before 6.2.3-25426-3 allows rEPSS 2.2%CVE-2026-23666HIGH.NET Framework Denial of Service VulnerabilityEPSS 1.3%CVE-2024-6778HIGHRace in DevTools in Google Chrome prior to 126.0.6478.182 allowed an attacker who convinced a user to install a malicious extension to injecEPSS 0.8%CVE-2023-6546HIGHKernel: gsm multiplexing race condition leads to privilege escalationEPSS 0.8%CVE-2020-1629MEDIUMJunos OS: A race condition vulnerability may cause RPD daemon to crash when processing a BGP NOTIFICATION message.EPSS 0.7%CVE-2025-31115HIGHXZ has a heap-use-after-free bug in threaded .xz decoderEPSS 0.6%CVE-2015-10067MEDIUMoznetmaster SSharpSmartThreadPool SmartThreadPool.cs race conditionEPSS 0.5%CVE-2023-4127MEDIUMRace Condition within a Thread in answerdev/answerEPSS 0.5%CVE-2023-3218MEDIUMRace Condition within a Thread in it-novum/openitcockpitEPSS 0.5%CVE-2025-58143CRITICALMutiple vulnerabilities in the Viridian interfaceEPSS 0.3%CVE-2022-1729A race condition was found the Linux kernel in perf_event_open() which can be exploited by an unprivileged user to gain root privileges. TheEPSS 0.3%CVE-2024-2032LOWRace Condition Vulnerability in zenml-io/zenmlEPSS 0.3%CVE-2024-10630HIGHA race condition in Ivanti Application Control Engine before version 10.14.4.0 allows a local authenticated attacker to bypass the applicatiEPSS 0.2%CVE-2026-22819MEDIUMOutray has a Race Condition in main/apps/web/src/routes/api/$orgSlug/subdomains/index.tsEPSS 0.2%CVE-2023-4732MEDIUMKernel: race between task migrating pages and another task calling exit_mmap to release those same pages getting invalid opcode bug in include/linux/swapops.hEPSS 0.2%CVE-2026-23684MEDIUMRace condition vulnerability in SAP Commerce CloudEPSS 0.2%CVE-2026-3904MEDIUMCalling NSS-backed functions that support caching via nscd may call the nscd client side code and in the GNU C Library version 2.36 under hEPSS 0.1%CVE-2026-46181HIGHRDMA/mlx4: Fix mis-use of RCU in mlx4_srq_event()EPSS 0.1%