Weaknesses of type CWE-191

399 results

Underflow de inteiro (envolvimento cíclico)

Ocorre quando uma operação aritmética subtrai um valor de um inteiro e o resultado fica abaixo do limite mínimo do tipo, causando um envolvimento cíclico para o valor máximo. Por exemplo, subtrair 1 de um inteiro sem sinal de valor 0 resulta no maior valor possível. Isso pode contornar validações de segurança ou causar comportamentos inesperados.

Example

Um programa valida se um tamanho é >= 0 antes de alocar memória. Se o tamanho vier de uma subtração (total - offset) onde offset é maior que total, um inteiro sem sinal faz o resultado "pular" para um número gigante, burlando a validação e causando alocação excessiva.

How to mitigate

Sempre validar o resultado de operações aritméticas antes de usá-lo (verificar se a subtração não gerou underflow), usar tipos inteiros com sinal quando apropriado para detectar condições inválidas, ou usar bibliotecas de aritmética segura que disparam exceções em overflow/underflow.

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%