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-2026-6522MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.1%CVE-2025-11626MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.1%CVE-2026-112046MEDIUMOW2 ASM 9.11 before 9.11.1 Denial of Service via Infinite Loop in Label.resolve()EPSS 0.1%CVE-2026-118781LOWForge: Denial of Service via infinite loop in BigInteger.modInverse() with negative input (incomplete fix of CVE-2026-33891)EPSS 0.1%CVE-2026-56289MEDIUMLoop with Unreachable Exit Condition in GNU patchEPSS 0.1%CVE-2026-107168MEDIUMM17n-lib: parser infinite loop on malformed utf-8 in count_utf_8_chars()EPSS 0.1%CVE-2026-46521MEDIUMImageMagick: Heap Buffer Over-Write in MIFF encoder when using LZMA compressionEPSS 0.1%CVE-2026-116671LOWInfinite loop in Xpdf due to missing validation in JPEG 2000 decoderEPSS 0.1%CVE-2026-48733MEDIUMImageMagick: Infinite Loop in subimage-search with crafted imageEPSS 0.1%CVE-2023-20997MEDIUMIn multiple locations, there is a possible way to trigger a persistent reboot loop due to improper input validation. This could lead to locaEPSS 0.1%CVE-2023-20998MEDIUMIn multiple locations, there is a possible way to trigger a persistent reboot loop due to improper input validation. This could lead to locaEPSS 0.1%CVE-2023-20999MEDIUMIn multiple locations, there is a possible way to trigger a persistent reboot loop due to improper input validation. This could lead to locaEPSS 0.1%CVE-2023-20996MEDIUMIn multiple locations, there is a possible way to trigger a persistent reboot loop due to improper input validation. This could lead to locaEPSS 0.1%CVE-2026-55595MEDIUMImageMagick: Infinite Loop in connected-components when providing invalid argumentsEPSS 0.1%