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-2024-42387MEDIUMUse of Out-of-range Pointer Offset in Mongoose Web Server libraryEPSS 0.3%CVE-2024-42389MEDIUMUse of Out-of-range Pointer Offset in Mongoose Web Server libraryEPSS 0.3%CVE-2024-42388MEDIUMUse of Out-of-range Pointer Offset in Mongoose Web Server libraryEPSS 0.3%CVE-2026-48977HIGHOpenSlide: Arbitrary memory write with crafted Ventana BIF fileEPSS 0.3%CVE-2023-43534HIGHUse of Out-of-range Pointer Offset in WLAN HOSTEPSS 0.3%CVE-2026-21732CRITICALGPU DDK - libusc OOB write at ConvertSwitchToArrayLookupBP during WebGPU shader compilationEPSS 0.3%CVE-2024-1013HIGHUnixodbc: out of bounds stack write due to pointer-to-integer types conversionEPSS 0.3%CVE-2024-42391MEDIUMUse of Out-of-range Pointer Offset in Mongoose Web Server libraryEPSS 0.3%CVE-2023-6560MEDIUMKernel: io_uring out of boundary memory access in __io_uaddr_map()EPSS 0.3%CVE-2024-42390MEDIUMUse of Out-of-range Pointer Offset in Mongoose Web Server libraryEPSS 0.3%CVE-2024-42383MEDIUMUse of Out-of-range Pointer Offset in Mongoose Web Server libraryEPSS 0.3%CVE-2024-47893MEDIUMGPU DDK - OOB read and write of the shared KMD/FW memory heap (VZ/TEE setups)EPSS 0.3%CVE-2022-42264HIGHNVIDIA GPU Display Driver for Linux contains a vulnerability in the kernel mode layer, where an unprivileged regular user can cause the use EPSS 0.3%CVE-2025-33215MEDIUMNVIDIA SNAP-4 Container contains a vulnerability in the VIRTIO-BLK component where a malicious guest VM may cause use of out-of-range pointeEPSS 0.3%CVE-2020-8904MEDIUMArbitrary trusted memory overwrite vulnerability in AsyloEPSS 0.2%CVE-2024-52935MEDIUMGPU DDK - psContext->eDM gives OOB writeEPSS 0.2%CVE-2026-28764HIGHMediaArea MediaInfoLib LXF element parsing heap-based buffer overflow vulnerabilityEPSS 0.2%CVE-2024-52938HIGHGPU DDK - rgxfw_pm_add_freelist_for_reconstruction OOB writeEPSS 0.2%CVE-2024-47894HIGHGPU DDK - Out of bounds read into fwlog due to unchecked loop boundsEPSS 0.2%CVE-2024-47895HIGHGPU DDK - OOB read into fwlog due to unchecked block countEPSS 0.2%