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-2022-37301HIGHA CWE-191: Integer Underflow (Wrap or Wraparound) vulnerability exists that could cause a denial of service of the controller due to memory EPSS 0.8%CVE-2023-21718HIGHMicrosoft ODBC Driver for SQL Server Remote Code Execution VulnerabilityEPSS 0.7%CVE-2023-22308HIGHAn integer underflow vulnerability exists in the vpnserver OvsProcessData functionality of SoftEther VPN 5.01.9674 and 5.02. A specially craEPSS 0.7%CVE-2025-49744HIGHWindows Graphics Component Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2025-66217HIGHAIS-catcher Integer Underflow in MQTT Packet Parsing leading to Heap Buffer OverflowEPSS 0.7%CVE-2025-2523CRITICALLack of buffer clearing before reuse may result in incorrect system behavior.EPSS 0.7%CVE-2025-29913HIGHCryptoLib's Crypto_TC_Prep_AAD Has Buffer Overflow Due to Integer UnderflowEPSS 0.7%CVE-2022-39293HIGHAzure RTOS USBX Host PIMA vulnerable to read integer underflow with buffer overflowEPSS 0.7%CVE-2024-38050HIGHWindows Workstation Service Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2026-29008HIGHU-Boot 2026.04-rc3 Integer Underflow DoS via tcp_rx_state_machine()EPSS 0.7%CVE-2024-32975MEDIUMEnvoy crashes in QuicheDataReader::PeekVarInt62Length()EPSS 0.7%CVE-2022-49280CRITICALNFSD: prevent underflow in nfssvc_decode_writeargs()EPSS 0.7%CVE-2025-29974MEDIUMWindows Kernel Information Disclosure VulnerabilityEPSS 0.7%CVE-2026-55490MEDIUMOpenWrt: EAD Integer Underflow → Pre-Auth Denial of ServiceEPSS 0.7%CVE-2026-5720HIGHminiupnpd Integer Underflow SOAPAction Header ParsingEPSS 0.7%CVE-2026-71352HIGHWindows Remote Access Connection Manager Remote Code Execution VulnerabilityEPSS 0.7%CVE-2026-91948HIGHFreeRDP before 3.31.0 Out-of-bounds Write via SHOW_PROTOCOLEPSS 0.6%CVE-2025-30356CRITICALHeap Buffer Overflow via Incomplete Length Check in `Crypto_TC_ApplySecurity`EPSS 0.6%CVE-2026-42981HIGHWindows Performance Monitor Remote Code Execution VulnerabilityEPSS 0.6%CVE-2023-24817HIGHRIOT-OS vulnerable to Out of Bounds write in routing with SRHEPSS 0.6%