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-2024-11097MEDIUMSourceCodester Student Record Management System Main Menu infinite loopEPSS 0.3%CVE-2026-6519MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.3%CVE-2026-6520MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.3%CVE-2025-29918MEDIUMSuricata pcre: negated pcr can cause infinite loopEPSS 0.3%CVE-2026-42781HIGHBIG-IP FastL4 virtual server vulnerabilityEPSS 0.3%CVE-2024-11595HIGHLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.3%CVE-2021-29591HIGHStack overflow due to looping TFLite subgraphEPSS 0.3%CVE-2024-35982MEDIUMbatman-adv: Avoid infinite loop trying to resize local TTEPSS 0.3%CVE-2024-53055MEDIUMwifi: iwlwifi: mvm: fix 6 GHz scan constructionEPSS 0.3%CVE-2025-2838MEDIUMSilicon Labs Gecko OS DNS Response Processing Infinite Loop Denial-of-Service VulnerabilityEPSS 0.3%CVE-2025-48879MEDIUMOctoPrint Vulnerable to Denial of Service through malformed HTTP requestEPSS 0.3%CVE-2023-50120MEDIUMMP4Box GPAC version 2.3-DEV-rev636-gfbd7e13aa-master was discovered to contain an infinite loop in the function av1_uvlc at media_tools/av_pEPSS 0.3%CVE-2023-46250MEDIUMpypdf possible Infinite Loop when PdfWriter(clone_from) is used with a PDFEPSS 0.2%CVE-2026-10683LOWDesignWare I2C target driver can be wedged into a permanent stuck state by an on-bus master (DoS)EPSS 0.2%CVE-2026-10642MEDIUMUnbounded TX busy-loop DoS in Zephyr PL011 UART driver under CTS hardware flow controlEPSS 0.2%CVE-2024-5569MEDIUMDenial of Service via crafted zip file in jaraco/zippEPSS 0.2%CVE-2025-32029MEDIUMts-asn1-der has Incorrect DER Encoding of Numbers Leading to Denial of Service and Incorrect Value RepresentationEPSS 0.2%CVE-2022-48635MEDIUMfsdax: Fix infinite loop in dax_iomap_rw()EPSS 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%