Weaknesses of type CWE-191

396 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-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-2022-3165MEDIUMAn integer underflow issue was found in the QEMU VNC server while processing ClientCutText messages in the extended format. A malicious clieEPSS 1.2%CVE-2023-36796HIGHVisual Studio Remote Code Execution VulnerabilityEPSS 1.2%CVE-2023-36794HIGHVisual Studio Remote Code Execution VulnerabilityEPSS 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-2021-25121Rating by BestWebSoft < 1.6 - Rating Denial of ServiceEPSS 1.2%CVE-2026-85436HIGHMOOS essential-moos through 10.0.1 pMOOSBridge Heap Corruption via Negative UDP LengthEPSS 1.2%CVE-2026-49181HIGHWindows DHCP Client Elevation of Privilege VulnerabilityEPSS 1.2%CVE-2022-0544An 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-2015-8370HIGHMultiple integer underflows in Grub2 1.98 through 2.02 allow physically proximate attackers to bypass authentication, obtain sensitive inforEPSS 1.1%CVE-2025-29909HIGHCryptoLib's Crypto_TC_ApplySecurity() Has a Heap Buffer Overflow VulnerabilityEPSS 1.1%CVE-2024-47546MEDIUMGHSL-2024-243: GStreamer has an integer underflow in extract_cc_from_data leading to OOB-readEPSS 1.1%CVE-2024-47545MEDIUMGHSL-2024-242: GStreamer has an integer underflow in FOURCC_strf parsing leading to OOB-readEPSS 1.1%CVE-2022-1698CRITICALAllowing long password leads to denial of service in causefx/organizrEPSS 1.1%