Weaknesses of type CWE-191

491 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-102192HIGHWindows Failover Cluster Denial of Service VulnerabilityEPSS 1.3%CVE-2022-28733HIGHInteger underflow in grub_net_recv_ip4_packetsEPSS 1.3%CVE-2024-37975HIGHSecure Boot Security Feature Bypass VulnerabilityEPSS 1.3%CVE-2023-38427CRITICALAn issue was discovered in the Linux kernel before 6.3.8. fs/smb/server/smb2pdu.c in ksmbd has an integer underflow and out-of-bounds read iEPSS 1.2%CVE-2023-43628MEDIUMAn integer underflow vulnerability exists in the NTRIP Stream Parsing functionality of GPSd 3.25.1~dev. A specially crafted network packet cEPSS 1.2%CVE-2023-36794HIGHVisual Studio Remote Code Execution VulnerabilityEPSS 1.2%CVE-2023-36796HIGHVisual Studio Remote Code Execution VulnerabilityEPSS 1.2%CVE-2021-25121—Rating by BestWebSoft < 1.6 - Rating Denial of ServiceEPSS 1.2%CVE-2026-66307HIGHSkype for Business and Lync Denial of Service VulnerabilityEPSS 1.2%CVE-2026-49181HIGHWindows DHCP Client Elevation of Privilege VulnerabilityEPSS 1.2%CVE-2022-0544—An integer underflow in the DDS loader of Blender leads to an out-of-bounds read, possibly allowing an attacker to read sensitive data usingEPSS 1.2%CVE-2023-31137HIGHMaraDNS Integer Underflow Vulnerability in DNS Packet DecompressionEPSS 1.1%CVE-2021-21811HIGHA memory corruption vulnerability exists in the XML-parsing CreateLabelOrAttrib functionality of AT&T Labs’ Xmill 0.7. A specially crafted XEPSS 1.1%CVE-2020-2031MEDIUMPAN-OS: Integer underflow in the management interfaceEPSS 1.1%CVE-2023-24911MEDIUMMicrosoft PostScript and PCL6 Class Printer Driver Information Disclosure VulnerabilityEPSS 1.1%CVE-2024-37981HIGHSecure Boot Security Feature Bypass VulnerabilityEPSS 1.1%CVE-2025-29912HIGHCryptoLib Has Heap Buffer Overflow Due to Unsigned Integer Underflow in Crypto_TC_ProcessSecurityEPSS 1.1%CVE-2025-4948HIGHLibsoup: integer underflow in soup_multipart_new_from_message() leading to denial of service in libsoupEPSS 1.1%CVE-2015-8370HIGHMultiple integer underflows in Grub2 1.98 through 2.02 allow physically proximate attackers to bypass authentication, obtain sensitive inforEPSS 1.1%CVE-2022-1698CRITICALAllowing long password leads to denial of service in causefx/organizrEPSS 1.1%