Weaknesses of type CWE-835

426 results

Loop infinito com condição de saída inalcançável

O programa entra em um loop (for, while, etc.) cuja condição de encerramento nunca pode ser verdadeira, causando uma execução infinita. Isso consome CPU indefinidamente, podendo derrubar a aplicação ou os serviços que dependem dela, caracterizando uma negação de serviço.

Example

Um servidor web processa requisições em um loop while(true) esperando receber um sinal de parada que nunca é enviado; ou um algoritmo incrementa uma variável de controle, mas a condição de saída compara com um valor que nunca será alcançado devido a overflow ou lógica errada.

How to mitigate

Revise toda lógica de condição de saída (teste se ela é realmente alcançável); implemente timeouts explícitos nos loops; adicione contadores de limite de iterações para forçar saída de segurança; use análise estática para detectar loops sem saída clara.

CVE-2021-25673—A vulnerability has been identified in SIMATIC S7-PLCSIM V5.4 (All versions). An attacker with local access to the system could cause a DeniEPSS 0.2%CVE-2021-33642MEDIUMWhen a file is processed, an infinite loop occurs in next_inline() of the more_curly() function.EPSS 0.2%CVE-2015-10103LOWInternalError503 Forget It settings.js infinite loopEPSS 0.2%CVE-2025-21667MEDIUMiomap: avoid avoid truncating 64-bit offset to 32 bitsEPSS 0.2%CVE-2025-21665MEDIUMfilemap: avoid truncating 64-bit offset to 32 bitsEPSS 0.2%CVE-2026-25533MEDIUMEnclave has a sandbox escape via infinite recursion and error objectsEPSS 0.2%CVE-2026-18726MEDIUMOpen-iscsi: open-iscsi: denial of service in iscsiuio router advertisement parsingEPSS 0.2%CVE-2024-58097MEDIUMwifi: ath11k: fix RCU stall while reaping monitor destination ringEPSS 0.2%CVE-2026-34852MEDIUMStack overflow vulnerability in the media platform. Impact: Successful exploitation of this vulnerability may affect availability.EPSS 0.2%CVE-2023-53026HIGHRDMA/core: Fix ib block iterator counter overflowEPSS 0.2%CVE-2026-41511MEDIUMOpenMcdf has an Infinite loop DoS via crafted CFB directory cycleEPSS 0.2%CVE-2026-45785MEDIUMOpenMcdf: Uncatchable infinite loop in DirectoryTree.TryGetDirectoryEntry on crafted CFB directory cycleEPSS 0.2%CVE-2026-27024MEDIUMpypdf has a possible infinite loop when processing TreeObjectEPSS 0.2%CVE-2026-68499MEDIUMre2: Global `String.prototype.match` with an empty-matchable pattern never advances → infinite loop with unbounded native memory growth (DoS)EPSS 0.2%CVE-2026-15163MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.2%CVE-2026-23874MEDIUMImageMagick's MSL: Stack overflow via infinite recursion in ProcessMSLScriptEPSS 0.2%CVE-2026-34962MEDIUMbarebox ext4 Directory Parsing Infinite Loop Denial of ServiceEPSS 0.2%CVE-2026-10028MEDIUMGlib-networking: infinite loop in glib-networking gnutls backend allows remote denial of service via circular certificate chainEPSS 0.2%CVE-2026-84309MEDIUMpypdf: Possible infinite loop for TreeObject.insert_childEPSS 0.2%CVE-2026-89045MEDIUMzstd-jni 1.4.8-4 through 1.5.7-13 Denial of Service via Negative LengthEPSS 0.2%