Falhas do tipo CWE-835

534 resultados

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

O programa entra em um loop cuja condição de parada nunca é satisfeita, fazendo-o executar indefinidamente. Isso consome recursos (CPU, memória) sem progresso, causando travamento, negação de serviço ou comportamento impredizível da aplicação.

Exemplo

Um validador de entrada que loop enquanto o valor não é válido, mas nunca atualiza a variável de controle; ou uma fila de processamento que tenta desempilhar itens, mas a condição de parada verifica uma variável que nunca muda. O servidor fica preso processando eternamente.

Como mitigar

Revisão de lógica: garantir que toda variável usada na condição de saída seja modificada dentro do loop. Implementar timeouts e limites de iteração como salvaguarda. Testes com entrada válida, inválida e edge cases para detectar loops travados antes do deploy.

CVE-2016-20099MEDIUML-SMASH through 2.14.5 Infinite Loop in VC-1 Importer ProbeEPSS 0.2%CVE-2026-121944MEDIUMsngrep through 1.9.0 Infinite Loop DoS via Crafted NFLOG TLVEPSS 0.2%CVE-2024-5569MEDIUMDenial of Service via crafted zip file in jaraco/zippEPSS 0.2%CVE-2022-48635MEDIUMfsdax: Fix infinite loop in dax_iomap_rw()EPSS 0.2%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-2026-15923MEDIUMInfinite loop denial of service in Zephyr SDIO byte-I/O from a card-supplied zero max_blk_sizeEPSS 0.2%CVE-2026-12629MEDIUMPL011 UART error interrupts never cleared, enabling an external-peer interrupt-storm denial of serviceEPSS 0.2%CVE-2024-58097MEDIUMwifi: ath11k: fix RCU stall while reaping monitor destination ringEPSS 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-2022-49317MEDIUMf2fs: avoid infinite loop to flush node pagesEPSS 0.2%CVE-2026-63570HIGHPkcs12Store.GetCertificateChain loops forever on cyclic issuer linksEPSS 0.2%CVE-2026-32777MEDIUMlibexpat before 2.7.5 allows an infinite loop while parsing DTD content.EPSS 0.2%CVE-2026-63575HIGHPKCS#12 key derivation loops about 2^32 times on a zero or negative iteration countEPSS 0.2%CVE-2026-119205HIGHpypdf: Possible infinite loop when cloning dictionariesEPSS 0.2%CVE-2026-119203HIGHpypdf: Possible infinite loop when hitting EOF in standard xref table during trailer searchEPSS 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-96596MEDIUMerl_tar:extract/2 loops forever on a GNU sparse member with a trailing holeEPSS 0.2%CVE-2026-78633MEDIUMDenial of Service in Okta RADIUS Agent Packet ParserEPSS 0.2%