Weaknesses of type CWE-191

491 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-2025-0727MEDIUMEclipse ThreadX NetX Duo HTTP server single PUT request integer underflowEPSS 0.8%CVE-2023-21718HIGHMicrosoft ODBC Driver for SQL Server Remote Code Execution VulnerabilityEPSS 0.7%CVE-2025-29974MEDIUMWindows Kernel Information Disclosure VulnerabilityEPSS 0.7%CVE-2026-56386HIGHApache bRPC: Integer Underflow and Out-of-Bounds Read in HTTP/2 DATA Frame ParserEPSS 0.7%CVE-2026-67298HIGHFreeRDP 3.28.0 Heap Buffer Overflow via RAIL orderLength UnderflowEPSS 0.7%CVE-2025-29913HIGHCryptoLib's Crypto_TC_Prep_AAD Has Buffer Overflow Due to Integer UnderflowEPSS 0.7%CVE-2024-38050HIGHWindows Workstation Service Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2026-19318CRITICALFireware OS Pre-Authentication Stack Buffer Overflow in iked Allows Remote Code ExecutionEPSS 0.7%CVE-2026-29008HIGHU-Boot 2026.04-rc3 Integer Underflow DoS via tcp_rx_state_machine()EPSS 0.7%CVE-2026-115928HIGHFreeSWITCH: Stack buffer overflow parsing the SDP a=crypto key material on inbound callsEPSS 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-2026-55490MEDIUMOpenWrt: EAD Integer Underflow → Pre-Auth Denial of ServiceEPSS 0.7%CVE-2026-5720HIGHminiupnpd Integer Underflow SOAPAction Header ParsingEPSS 0.7%CVE-2025-30356CRITICALHeap Buffer Overflow via Incomplete Length Check in `Crypto_TC_ApplySecurity`EPSS 0.7%CVE-2022-20483HIGHIn several functions that parse avrc response in avrc_pars_ct.cc and related files, there are possible out of bounds reads due to integer ovEPSS 0.7%CVE-2026-59090HIGHGimp: gimp: arbitrary code execution in psd plugin due to unsigned underflowEPSS 0.6%CVE-2025-2581MEDIUMxmedcon DICOM File malloc integer underflowEPSS 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%