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-2024-28933HIGHMicrosoft ODBC Driver for SQL Server Remote Code Execution VulnerabilityEPSS 2.4%CVE-2024-28930HIGHMicrosoft ODBC Driver for SQL Server Remote Code Execution VulnerabilityEPSS 2.4%CVE-2021-20240—A flaw was found in gdk-pixbuf in versions before 2.42.0. An integer wraparound leading to an out of bounds write can occur when a crafted GEPSS 2.3%CVE-2024-30070HIGHDHCP Server Service Denial of Service VulnerabilityEPSS 2.3%CVE-2024-26208HIGHMicrosoft Message Queuing (MSMQ) Remote Code Execution VulnerabilityEPSS 2.3%CVE-2024-28945HIGHMicrosoft OLE DB Driver for SQL Server Remote Code Execution VulnerabilityEPSS 2.3%CVE-2024-38074CRITICALWindows Remote Desktop Licensing Service Remote Code Execution VulnerabilityEPSS 2.2%CVE-2022-36063HIGHUSBX Host CDC ECM integer underflow with buffer overflowEPSS 2.2%CVE-2021-31889HIGHA vulnerability has been identified in Capital Embedded AR Classic 431-422 (All versions), Capital Embedded AR Classic R20-11 (All versions EPSS 2.2%CVE-2026-85436HIGHMOOS essential-moos through 10.0.1 pMOOSBridge Heap Corruption via Negative UDP LengthEPSS 2.1%CVE-2026-33845HIGHGnutls: gnutls: denial of service via dtls zero-length fragmentEPSS 2.1%CVE-2023-36909MEDIUMMicrosoft Message Queuing (MSMQ) Denial of Service VulnerabilityEPSS 2.1%CVE-2019-5099HIGHAn exploitable integer underflow vulnerability exists in the CMP-parsing functionality of LEADTOOLS 20. A specially crafted CMP image file cEPSS 2.0%CVE-2023-21527HIGHWindows iSCSI Service Denial of Service VulnerabilityEPSS 2.0%CVE-2023-28250CRITICALWindows Pragmatic General Multicast (PGM) Remote Code Execution VulnerabilityEPSS 2.0%CVE-2024-0565MEDIUMKernel: cifs filesystem decryption improper input validation remote code execution vulnerability in function receive_encrypted_standard of clientEPSS 2.0%CVE-2021-43083—Apache PLC4X 0.9.0 Buffer overflow in PLC4C via crafted server responseEPSS 2.0%CVE-2024-26244HIGHMicrosoft WDAC OLE DB provider for SQL Server Remote Code Execution VulnerabilityEPSS 2.0%CVE-2023-32014CRITICALWindows Pragmatic General Multicast (PGM) Remote Code Execution VulnerabilityEPSS 1.9%CVE-2024-32040HIGHFreeRDP vulnerable to integer underflow in nsc_rle_decodeEPSS 1.9%