Falhas do tipo CWE-191

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