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-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-2022-49317MEDIUMf2fs: avoid infinite loop to flush node pagesEPSS 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-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-119203HIGHpypdf: Possible infinite loop when hitting EOF in standard xref table during trailer searchEPSS 0.2%CVE-2026-119205HIGHpypdf: Possible infinite loop when cloning dictionariesEPSS 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%