Fallos del tipo CWE-191

492 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-102714HIGHICMPv6 option validation accepts a trailing byte residue, sending the Router Advertisement, Neighbor Solicitation, Neighbor Advertisement and Redirect option walkers past the packet or into a permanent loopEPSS 0.2%CVE-2026-34165MEDIUMgo-git: Maliciously crafted idx file can cause asymmetric memory consumptionEPSS 0.2%CVE-2026-22185MEDIUMOpenLDAP LMDB mdb_load Heap Buffer Underflow in readline()EPSS 0.2%CVE-2026-73433MEDIUMGstreamer1-plugins-good: gstreamer: unsigned integer underflow in avidemux fujifilm strd parsing leading to out-of-bounds read/writeEPSS 0.1%CVE-2023-53258MEDIUMdrm/amd/display: Fix possible underflow for displays with large vblankEPSS 0.1%CVE-2026-39855MEDIUMosslsigncode has an Integer Underflow in PE Page Hash Calculation Can Cause Out-of-Bounds ReadEPSS 0.1%CVE-2026-64009HIGHxfrm: Check for underflow in xfrm_state_mtuEPSS 0.1%CVE-2026-65200LOWHuawei malicious on-bus PLDM or NCSI device can drive out-of-bounds-heap reads via short MCTP responsesEPSS 0.1%CVE-2026-40386MEDIUMIn libexif through 0.6.25, an integer underflow in size checking for Fuji and Olympus MakerNote decoding could be used by attackers to crashEPSS 0.1%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-2026-47540HIGHNVIDIA GPU Display Driver for Windows and Linux contains a vulnerability in the kernel mode layer where an attacker could cause an integer uEPSS 0.1%CVE-2026-106437MEDIUMOut-of-bounds read and write via undersized BSON buffer reservation in MongoDB C DriverEPSS 0.1%CVE-2026-31617MEDIUMusb: gadget: f_ncm: validate minimum block_len in ncm_unwrap_ntb()EPSS 0.1%CVE-2025-39928HIGHi2c: rtl9300: ensure data length is within supported rangeEPSS 0.1%CVE-2026-90996MEDIUMSssd: sssd: denial of service in nss responder via crafted zero-length requestsEPSS 0.1%CVE-2026-112010MEDIUMsmpeg through 2.0.0 Integer Underflow via stream_header in MPEGsystem.cppEPSS 0.1%CVE-2026-107635MEDIUMDislocker through 0.7.3 Out-of-Bounds Heap Read via VMK/FVEK Datum Size UnderflowEPSS 0.1%CVE-2026-47585HIGHNVIDIA GPU Display Driver for Windows contains a vulnerability in the kernel module where an attacker could cause an integer underflow. A suEPSS 0.1%CVE-2026-18839LOWPopt-devel: popt-static: size_t underflow in singleoptionhelpEPSS 0.1%