Weaknesses of type CWE-191

485 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-2025-55096LOWInadequate bounds check and potential underflow in _ux_host_class_hid_report_descriptor_get()EPSS 0.2%CVE-2026-24077MEDIUMInteger Underflow (Wrap or Wraparound) in WLAN HostEPSS 0.2%CVE-2026-88377MEDIUMBento4 1.6.0.0 contains an integer underflow vulnerability in the avcC and hvcC configuration atom parsers. A specially crafted MP4 file conEPSS 0.2%CVE-2024-54095HIGHA vulnerability has been identified in Solid Edge SE2024 (All versions < V224.0 Update 10). The affected application is vulnerable to integeEPSS 0.2%CVE-2026-58087HIGHHeap out-of-bounds access in semctl(2)EPSS 0.2%CVE-2026-111735HIGHInteger underflow leads to out-of-bounds read in pf_cpm_c_data_ind()EPSS 0.2%CVE-2026-39314MEDIUMCUPS has an integer underflow in `_ppdCreateFromIPP` causes root cupsd crash via negative `job-password-supported`EPSS 0.2%CVE-2026-95958MEDIUMJusticeRage Manalyze PE Parser pe.cpp _parse_relocations integer underflowEPSS 0.2%CVE-2026-58242LOWImproper Authorization check in SAP Cloud ConnectorEPSS 0.2%CVE-2026-34165MEDIUMgo-git: Maliciously crafted idx file can cause asymmetric memory consumptionEPSS 0.2%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-13326MEDIUMOut-of-bounds read and integer underflow vulnerability in QNdefNfcTextRecord impacts Qt NFC moduleEPSS 0.2%CVE-2026-27710MEDIUMNanaZip .NET Single-File Parser Integer Underflow Leads to Unbounded Allocation (DoS)EPSS 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-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-39855MEDIUMosslsigncode has an Integer Underflow in PE Page Hash Calculation Can Cause Out-of-Bounds ReadEPSS 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%