Falhas do tipo CWE-835

425 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-6528MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.1%CVE-2026-5407MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.1%CVE-2026-34962MEDIUMbarebox ext4 Directory Parsing Infinite Loop Denial of ServiceEPSS 0.1%CVE-2026-84309MEDIUMpypdf: Possible infinite loop for TreeObject.insert_childEPSS 0.1%CVE-2026-42310MEDIUMPillow: PDF Parsing Trailer Infinite Loop (DoS)EPSS 0.1%CVE-2026-6523MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in WiresharkEPSS 0.1%CVE-2026-89045MEDIUMzstd-jni 1.4.8-4 through 1.5.7-13 Denial of Service via Negative LengthEPSS 0.1%CVE-2026-55595MEDIUMImageMagick: Infinite Loop in connected-components when providing invalid argumentsEPSS 0.1%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-2025-27560MEDIUMLoop with unreachable exit condition ('infinite loop') for some Intel(R) Platform within Ring 0: Kernel may allow a denial of service. SysteEPSS 0.1%CVE-2026-45271MEDIUMpicotls has infinite recursion in the minicrypto ASN.1 decoderEPSS 0.1%CVE-2026-46521MEDIUMImageMagick: Heap Buffer Over-Write in MIFF encoder when using LZMA compressionEPSS 0.1%CVE-2026-55373MEDIUMOpenEXR: OpenEXRUtil SampleCountChannel endEdit() can loop forever on UINT_MAX sample countsEPSS 0.1%CVE-2026-13002MEDIUMDnsmasq: infinite loop dos in dnssec nsec/nsec3 type bitmap parsingEPSS 0.1%CVE-2026-12236MEDIUMInfinite loop (DoS) in Bluetooth GATT client parsing of Read-By-Type responses with zero data lengthEPSS 0.1%CVE-2026-6554MEDIUMinfinte loop in libpcap before 1.10.7EPSS 0.1%CVE-2026-48733MEDIUMImageMagick: Infinite Loop in subimage-search with crafted imageEPSS 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%