Weaknesses of type CWE-823

111 results

Uso de offset de ponteiro fora do intervalo válido

O código calcula ou usa um deslocamento (offset) para um ponteiro que aponta para além dos limites da memória alocada ou válida para aquele objeto. Isso permite leitura ou escrita em áreas de memória não pretendidas, causando corrupção de dados, vazamento de informações ou execução de código arbitrário.

Example

Uma função recebe um índice do usuário e o usa diretamente como offset em um array sem validar se está dentro dos limites: `int valor = array[indice_usuario];` Se indice_usuario for negativo ou maior que o tamanho do array, acessa memória inválida.

How to mitigate

Sempre validar índices e offsets antes de usá-los em aritmética de ponteiros: confirmar que estão dentro de [0, tamanho]. Use funções seguras de cópia de memória (como strncpy ao invés de strcpy) e considere usar linguagens com verificação de limites em tempo de execução ou análise estática para detectar offsets suspeitos.

CVE-2026-49746HIGHGPU DDK - Dimension Mismatch and Integer Truncation in PMRDevPhysAddrOSMemEPSS 0.2%CVE-2026-107570LOWUse of Out-of-range Pointer Offset in muttEPSS 0.2%CVE-2026-34193MEDIUMGPU DDK - Arbitrary write via UFO updates due insufficient pointer validation in rgxfw_to_ptr()EPSS 0.1%CVE-2024-33041MEDIUMUse of Out-of-range Pointer Offset in Computer VisionEPSS 0.1%CVE-2022-25709HIGHUse of Out-of-range Pointer Offset in Data ModemEPSS 0.1%CVE-2022-25694HIGHUse of Out-of-range Pointer Offset in MODEMEPSS 0.1%CVE-2022-33246MEDIUMUse of out-of-range pointer offset in AudioEPSS 0.1%CVE-2023-28575MEDIUMMultiple Type Confusion VulnerabilityEPSS 0.1%CVE-2023-33033HIGHUse of Out-of-range Pointer Offset in AudioEPSS 0.1%CVE-2021-22549MEDIUMArbitrary enclave memory overwrite vulnerability in Asylo TrustedPrimitives::UntrustedCallEPSS 0.1%CVE-2024-43060HIGHUse of Out-of-range Pointer Offset in Automotive AudioEPSS 0.1%CVE-2023-28564HIGHUse of Out-of-range Pointer Offset in WLAN HALEPSS 0.1%CVE-2023-22387HIGHUse of Out-of-range Pointer Offset in Qualcomm IPCEPSS 0.1%CVE-2024-45570MEDIUMUse of Out-of-range Pointer Offset in Camera DriverEPSS 0.1%CVE-2023-33066HIGHUse of Out-of-range Pointer Offset in AudioEPSS 0.1%CVE-2023-43516HIGHUse of out-of-range pointer offset in VideoEPSS 0.1%CVE-2024-21475HIGHUse of Out-of-range Pointer Offset in VideoEPSS 0.1%CVE-2023-43513HIGHUse of Out-of-range Pointer Offset in PCIeEPSS 0.1%CVE-2024-45557HIGHUse of Out-of-range Pointer Offset in Trust Management EngineEPSS 0.1%CVE-2023-33067MEDIUMUse of Out-of-range Pointer Offset in AudioEPSS 0.1%