Falhas do tipo CWE-191

491 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-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%