Falhas do tipo CWE-191

399 resultados

Underflow de inteiro (envolvimento ou wraparound)

Ocorre quando uma operação aritmética subtrai um valor de um inteiro, resultando em um número menor do que o mínimo representável pelo tipo de dado. O processador ou linguagem 'envolve' o resultado para o máximo valor do tipo (wraparound), causando lógica inesperada. Isso frequentemente leva a bypass de validações, alocação de memória gigante ou acesso a posições indevidas.

Exemplo

Um programa válida o tamanho de um buffer subtraindo dois valores inteiros sem sinal (unsigned int). Se o primeiro valor for menor que o segundo, em vez de resultar em um número negativo, o resultado envolve para um inteiro extremamente alto (ex: 0 - 1 = 4.294.967.295 em 32-bit), passando por todas as verificações e causando overflow ou read/write fora dos limites.

Como mitigar

Sempre valide que o resultado de operações aritméticas está dentro do intervalo esperado antes de usá-lo. Use checagem de underflow (verificar se minuendo >= subtraendo) ou prefira tipos assinados com verificação de exceção. Em linguagens modernas, use bibliotecas de aritmética segura que lançam erro em wraparound.

CVE-2024-23313CRITICALAn integer underflow vulnerability exists in the sopen_FAMOS_read functionality of The Biosig Project libbiosig 2.5.0 and Master Branch (ab0EPSS 1.8%CVE-2020-6098HIGHAn exploitable denial of service vulnerability exists in the freeDiameter functionality of freeDiameter 1.3.2. A specially crafted Diameter EPSS 1.8%CVE-2023-40181MEDIUMInteger-Underflow leading to Out-Of-Bound Read in FreeRDPEPSS 1.7%CVE-2022-36063HIGHUSBX Host CDC ECM integer underflow with buffer overflowEPSS 1.7%CVE-2023-24887HIGHMicrosoft PostScript and PCL6 Class Printer Driver Remote Code Execution VulnerabilityEPSS 1.6%CVE-2023-39350MEDIUMIncorrect offset calculation leading to denial of service in FreeRDPEPSS 1.6%CVE-2023-28247HIGHWindows Network File System Information Disclosure VulnerabilityEPSS 1.6%CVE-2022-2335HIGHSofting Secure Integration Server Integer UnderflowEPSS 1.5%CVE-2026-63362HIGHo6 Automation open62541 Integer UnderflowEPSS 1.5%CVE-2023-21708CRITICALRemote Procedure Call Runtime Remote Code Execution VulnerabilityEPSS 1.5%CVE-2021-24894Reviews Plus < 1.2.14 - Subscriber+ Reviews DoSEPSS 1.5%CVE-2023-21556HIGHWindows Layer 2 Tunneling Protocol (L2TP) Remote Code Execution VulnerabilityEPSS 1.5%CVE-2024-24474HIGHQEMU before 8.2.0 has an integer underflow, and resultant buffer overflow, via a TI command when an expected non-DMA transfer length is lessEPSS 1.4%CVE-2023-21681HIGHMicrosoft WDAC OLE DB provider for SQL Server Remote Code Execution VulnerabilityEPSS 1.4%CVE-2026-58058MEDIUMNmap - Integer Underflow in IPv6 Extension Header ParsingEPSS 1.4%CVE-2022-21685MEDIUMInteger underflow in FrontierEPSS 1.3%CVE-2023-21684HIGHMicrosoft PostScript and PCL6 Class Printer Driver Remote Code Execution VulnerabilityEPSS 1.3%CVE-2023-24864HIGHMicrosoft PostScript and PCL6 Class Printer Driver Elevation of Privilege VulnerabilityEPSS 1.3%CVE-2022-28733HIGHInteger underflow in grub_net_recv_ip4_packetsEPSS 1.3%CVE-2024-37975HIGHSecure Boot Security Feature Bypass VulnerabilityEPSS 1.3%