Fallos del tipo CWE-191

399 resultados

Subfluxo de inteiro (estouro negativo)

Ocorre quando uma operação aritmética subtrai um valor maior de um inteiro não assinado, causando wraparound: o resultado "volta" para um número muito grande em vez de ficar negativo. Um inteiro de 8 bits sem sinal (0-255), ao subtrair 1 de 0, vira 255. Isso quebra lógica de validação e pode ser explorado para contornar limites de segurança, alocar memória inadequada ou acessar áreas indevidas.

Ejemplo

Um sistema de download que valida se o tamanho solicitado cabe em buffer: se recebe tamanho=0 e subtrai um header de 10 bytes, a conta (0 - 10) em inteiro não assinado resulta em 4.294.967.286 bytes em uma arquitetura de 32 bits, enganando a validação e causando overflow no buffer.

Cómo mitigar

Sempre validar entrada antes de operações aritméticas; usar tipos assinados quando desejar representar negativos; implementar verificações de limites (p.ex., se A < B antes de calcular A - B); usar ferramentas estáticas ou sanitizers (AddressSanitizer, UBSan) para detectar wraparound em tempo de desenvolvimento.

CVE-2026-3172HIGHpgvector buffer overflow in parallel HNSW index buildEPSS 0.3%CVE-2026-31883MEDIUMFreeRDP has a `size_t` underflow in ADPCM decoder leads to heap-buffer-overflow writeEPSS 0.3%CVE-2026-32149HIGHWindows Hyper-V Remote Code Execution VulnerabilityEPSS 0.3%CVE-2022-2867libtiff's tiffcrop utility has a uint32_t underflow that can lead to out of bounds read and write. An attacker who supplies a crafted file tEPSS 0.3%CVE-2022-2869libtiff's tiffcrop tool has a uint32_t underflow which leads to out of bounds read and write in the extractContigSamples8bits routine. An atEPSS 0.3%CVE-2025-11931LOWInteger Underflow Leads to Out-of-Bounds Access in XChaCha20-Poly1305 DecryptEPSS 0.3%CVE-2026-28525HIGHSWUpdate Integer Underflow in Multipart Upload ParserEPSS 0.3%CVE-2025-21158HIGHInDesign Desktop | Integer Underflow (Wrap or Wraparound) (CWE-191)EPSS 0.3%CVE-2026-16924HIGHVulnerabilities in IBM AIX and PowerVM VIOSEPSS 0.3%CVE-2026-25772MEDIUMWazuh Database Synchronization Vulnerable to Stack-based Buffer Overflow via snprintf Integer UnderflowEPSS 0.3%CVE-2026-9624HIGHRSLinx Classic® - Multiple VulnerabilitiesEPSS 0.3%CVE-2026-9622HIGHRSLinx Classic® - Multiple VulnerabilitiesEPSS 0.3%CVE-2024-49514HIGHPhotoshop Desktop | Integer Underflow (Wrap or Wraparound) (CWE-191)EPSS 0.3%CVE-2026-69421HIGHWindows Kernel-Mode Driver Elevation of Privilege VulnerabilityEPSS 0.3%CVE-2026-69687HIGHWindows USB Audio Class driver (usbaudio.sys) Elevation of Privilege VulnerabilityEPSS 0.3%CVE-2026-94090MEDIUMJusticeRage Manalyze PE Parser pe.cpp _parse_debug integer underflowEPSS 0.3%CVE-2024-54028HIGHAn integer underflow vulnerability exists in the OLE Document DIFAT Parser functionality of catdoc 0.95. A specially crafted malformed file EPSS 0.3%CVE-2024-53061HIGHmedia: s5p-jpeg: prevent buffer overflowsEPSS 0.3%CVE-2026-48029HIGHlibheif: heap OOB read in ImageItem_Grid::decode_grid_tile via irot-induced tile-coordinate underflowEPSS 0.3%CVE-2026-62289MEDIUMlibheif: Integer underflow in Fraction constructor via double clap transform applicationEPSS 0.3%