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-2022-21147MEDIUMAn out of bounds read vulnerability exists in the malware scan functionality of ESTsoft Alyac 2.5.7.7. A specially-crafted PE file can triggEPSS 0.7%CVE-2023-20187HIGHA vulnerability in the Multicast Leaf Recycle Elimination (mLRE) feature of Cisco IOS XE Software for Cisco ASR 1000 Series Aggregation ServEPSS 0.7%CVE-2026-32829HIGHlz4_flex: Decompression can leak information from uninitialized memory or reused output bufferEPSS 0.6%CVE-2023-24855CRITICALUse of Out-of-range Pointer Offset in ModemEPSS 0.5%CVE-2024-6603HIGHMemory corruption in thread creationEPSS 0.5%CVE-2025-46806MEDIUMMisaligned Memory Accesses in `is_openvpn_protocol()`EPSS 0.5%CVE-2023-2426MEDIUMUse of Out-of-range Pointer Offset in vim/vimEPSS 0.4%CVE-2021-1352HIGHCisco IOS XE Software DECnet Phase IV/OSI Denial of Service VulnerabilityEPSS 0.4%CVE-2026-12290HIGHMemory safety bug fixed in Firefox 152EPSS 0.4%CVE-2025-11232HIGHInvalid characters cause assertEPSS 0.4%CVE-2024-42416HIGHMultiple issues in ctl(4) CAM Target LayerEPSS 0.4%CVE-2025-54152LOWQsync CentralEPSS 0.4%CVE-2024-42386HIGHUse of Out-of-range Pointer Offset in Mongoose Web Server libraryEPSS 0.4%CVE-2023-22388CRITICALUse of Out-of-range Pointer Offset in Multi-mode Call ProcessorEPSS 0.4%CVE-2023-43553CRITICALUse of Out-of-range Pointer Offset in WLAN HOSTEPSS 0.4%CVE-2026-41907HIGHuuid: Missing buffer bounds check in `v3`/`v5`/`v6` when `buf` is providedEPSS 0.4%CVE-2017-11076HIGHUse of Out-of-range Pointer Offset in VideoEPSS 0.4%CVE-2026-72642HIGHUse of Out-of-range Pointer Offset in the Elasticsearch Machine Learning Native Inference ProcessEPSS 0.3%CVE-2022-43665MEDIUMA denial of service vulnerability exists in the malware scan functionality of ESTsoft Alyac 2.5.8.645. A specially-crafted PE file can lead EPSS 0.3%CVE-2026-46244CRITICALnetfilter: nft_inner: Fix IPv6 inner_thoff desyncEPSS 0.3%