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-2026-5188LOWInteger underflow in X.509 SAN parsing in wolfSSLEPSS 0.1%CVE-2026-21489MEDIUMiccDEV has Out-of-bounds Read and Integer Underflow (Wrap or Wraparound)EPSS 0.1%CVE-2025-39928HIGHi2c: rtl9300: ensure data length is within supported rangeEPSS 0.1%CVE-2026-27710MEDIUMNanaZip .NET Single-File Parser Integer Underflow Leads to Unbounded Allocation (DoS)EPSS 0.1%CVE-2026-31617MEDIUMusb: gadget: f_ncm: validate minimum block_len in ncm_unwrap_ntb()EPSS 0.1%CVE-2026-58087HIGHHeap out-of-bounds access in semctl(2)EPSS 0.1%CVE-2026-42326MEDIUMImageMagick: Heap Buffer Over-Read in IPTC encoderEPSS 0.1%CVE-2026-65704HIGHFFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten DecoderEPSS 0.1%CVE-2026-57452MEDIUMVim: Out-of-bounds Read with libsodium-encrypted FilesEPSS 0.1%CVE-2023-21630HIGHInteger Overflow in Multimedia FrameworkEPSS 0.1%CVE-2026-50593HIGHGraphite before 1.3.15 has an integer underflow and resultant out-of-bounds write via Graphite actions, because slotat does not ensure that EPSS 0.1%CVE-2026-90996MEDIUMSssd: sssd: denial of service in nss responder via crafted zero-length requestsEPSS 0.1%CVE-2023-33059HIGHBuffer Copy Without Checking Size of Input in AudioEPSS 0.1%CVE-2023-20635MEDIUMIn keyinstall, there is a possible information disclosure due to an integer overflow. This could lead to local information disclosure with SEPSS 0.1%CVE-2026-24077MEDIUMInteger Underflow (Wrap or Wraparound) in WLAN HostEPSS 0.1%CVE-2026-44069LOWInteger underflow in volxlateEPSS 0.1%CVE-2022-38681MEDIUMIn wlan driver, there is a possible missing params check. This could lead to local denial of service in wlan services.EPSS 0.1%CVE-2026-18839LOWPopt-devel: popt-static: size_t underflow in singleoptionhelpEPSS 0.1%CVE-2022-44444MEDIUMIn wlan driver, there is a possible missing bounds check. This could lead to local denial of service in wlan services.EPSS 0.1%