Falhas do tipo CWE-125

5.182 resultados

Leitura fora dos limites de memória

Ocorre quando o código tenta ler dados de uma posição de memória fora do intervalo alocado para um buffer ou array. O programa não valida o índice ou tamanho antes de acessar, causando leitura de dados inválidos, corrupção de informações ou revelação de dados sensíveis da memória adjacente.

Exemplo

Um processador de imagem PNG lê 4 bytes de um buffer de 2 bytes para validar uma assinatura, ou uma função copia uma string sem verificar se o índice fornecido pelo usuário extrapola o tamanho real do array. Em ambos os casos, dados fora do escopo pretendido são lidos.

Como mitigar

Sempre validar índices e comprimentos contra os limites reais do buffer antes de qualquer leitura. Usar funções seguras (ex: `strncpy` em vez de `strcpy`, bounds-checking em loops) e implementar testes com entradas extremas (size zero, índices negativos, valores muito grandes).

CVE-2025-54643MEDIUMOut-of-bounds array access issue due to insufficient data verification in the kernel ambient light module. Impact: Successful exploitation oEPSS 0.1%CVE-2017-13321MEDIUMIn SensorService::isDataInjectionEnabled of frameworks/native/services/sensorservice/SensorService.cpp, there is a possible out of bounds reEPSS 0.1%CVE-2022-28787MEDIUMImproper buffer size check logic in wmfextractor library prior to SMR May-2022 Release 1 allows out of bounds read leading to possible tempoEPSS 0.1%CVE-2024-20084MEDIUMIn power, there is a possible out of bounds read due to a missing bounds check. This could lead to local information disclosure with System EPSS 0.1%CVE-2022-28785MEDIUMImproper buffer size check logic in aviextractor library prior to SMR May-2022 Release 1 allows out of bounds read leading to possible tempoEPSS 0.1%CVE-2024-22010MEDIUMIn dvfs_plugin_caller of fvp.c, there is a possible out of bounds read due to a missing bounds check. This could lead to local information dEPSS 0.1%CVE-2022-28786MEDIUMImproper buffer size check logic in aviextractor library prior to SMR May-2022 Release 1 allows out of bounds read leading to possible tempoEPSS 0.1%CVE-2023-21199—In btu_ble_proc_ltk_req of btu_hcif.cc, there is a possible out of bounds read due to a missing bounds check. This could lead to local inforEPSS 0.1%CVE-2026-58731MEDIUMIn multiple functions of physmem_extmem_linux.c, there is a possible out-of-bounds read due to uninitialized data. This could lead to local EPSS 0.1%CVE-2023-20606MEDIUMIn apusys, there is a possible out of bounds read due to a missing bounds check. This could lead to local information disclosure with SystemEPSS 0.1%CVE-2023-20969MEDIUMIn multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This could lead to local inforEPSS 0.1%CVE-2023-20970MEDIUMIn multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This could lead to local inforEPSS 0.1%CVE-2023-21006MEDIUMIn multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This could lead to local inforEPSS 0.1%CVE-2023-20989MEDIUMIn btm_ble_write_adv_enable_complete of btm_ble_gap.cc, there is a possible out of bounds read due to a missing bounds check. This could leaEPSS 0.1%CVE-2024-20088MEDIUMIn keyinstall, there is a possible out of bounds read due to a missing bounds check. This could lead to local information disclosure with SyEPSS 0.1%CVE-2024-20085MEDIUMIn power, there is a possible out of bounds read due to a missing bounds check. This could lead to local information disclosure with System EPSS 0.1%CVE-2023-21009MEDIUMIn multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This could lead to local inforEPSS 0.1%CVE-2023-21011MEDIUMIn multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This could lead to local inforEPSS 0.1%CVE-2023-20968MEDIUMIn multiple functions of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This could lead to local inforEPSS 0.1%CVE-2023-21008MEDIUMIn multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This could lead to local inforEPSS 0.1%