Weaknesses of type CWE-835

534 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-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-118781LOWForge: Denial of Service via infinite loop in BigInteger.modInverse() with negative input (incomplete fix of CVE-2026-33891)EPSS 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-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%