Weaknesses of type CWE-823

105 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-2023-33033HIGHUse of Out-of-range Pointer Offset in AudioEPSS 0.1%CVE-2026-45199HIGHGPU DDK - rgxfw_to_ptr() does not reject FW private data pointersEPSS 0.1%CVE-2023-22387HIGHUse of Out-of-range Pointer Offset in Qualcomm IPCEPSS 0.1%CVE-2023-28564HIGHUse of Out-of-range Pointer Offset in WLAN HALEPSS 0.1%CVE-2024-43060HIGHUse of Out-of-range Pointer Offset in Automotive AudioEPSS 0.1%CVE-2023-33066HIGHUse of Out-of-range Pointer Offset in AudioEPSS 0.1%CVE-2026-49744HIGHGPU DDK - Unchecked ui32TracePointer in rgxfw_log_ex()EPSS 0.1%CVE-2023-43516HIGHUse 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-21475HIGHUse of Out-of-range Pointer Offset in VideoEPSS 0.1%CVE-2026-49745HIGHGPU DDK - Unvalidated sHWPerfCtlDMABuf GPU-VA, DMA-write into FW privdata via MMU ctx 0EPSS 0.1%CVE-2023-33067MEDIUMUse of Out-of-range Pointer Offset in AudioEPSS 0.1%CVE-2024-45570MEDIUMUse of Out-of-range Pointer Offset in Camera DriverEPSS 0.1%CVE-2024-45557HIGHUse of Out-of-range Pointer Offset in Trust Management EngineEPSS 0.1%CVE-2026-49746HIGHGPU DDK - Dimension Mismatch and Integer Truncation in PMRDevPhysAddrOSMemEPSS 0.1%CVE-2024-45573HIGHUse of Out-of-range Pointer Offset in DisplayEPSS 0.1%CVE-2024-33036MEDIUMUse of Out-of-range Pointer Offset in Camera DriverEPSS 0.1%CVE-2024-23377MEDIUMUse of Out-of-range Pointer Offset in ComputerVisionEPSS 0.1%CVE-2021-22550MEDIUMEnclave memory overwrite/overread vulnerability in Asylo UntrustedCacheMalloc::GetBufferEPSS 0.1%CVE-2026-31912MEDIUMOOBR in libpcap before 1.10.7EPSS 0.1%