Falhas do tipo CWE-457

293 resultados

Uso de variável não inicializada

Quando o código usa uma variável antes de atribuir um valor válido a ela, o programa pode ler lixo de memória (valores aleatórios deixados por outras operações). Isso leva a comportamentos imprevisíveis, falhas, ou no pior caso, a exploração de segurança quando o atacante consegue controlar o que está naquela posição de memória.

Exemplo

Um buffer local declarado em C sem inicialização (char buf[256];) é usado logo depois em memcpy ou sprintf. Se o conteúdo anterior daquela pilha contiver dados sensíveis ou endereços, um vazamento de informação ou corrupção de fluxo de controle pode ocorrer.

Como mitigar

Inicialize sempre as variáveis na declaração (char buf[256] = {0}; ou int x = 0;). Use análise estática (linters, compiler warnings, ferramentas como clang-analyzer) para detectar uso de variáveis não inicializadas antes do deploy. Em linguagens gerenciadas como Java/C#, o compilador já força isso.

CVE-2024-33021HIGHUse of Uninitialized Variable in Automotive GPUEPSS 0.1%CVE-2025-20638MEDIUMIn DA, there is a possible read of uninitialized heap data due to uninitialized data. This could lead to local information disclosure, if anEPSS 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-2022-33716LOWAn absence of variable initialization in ICCC TA prior to SMR Aug-2022 Release 1 allows local attacker to read uninitialized memory.EPSS 0.1%CVE-2026-47336LOWUse of uninitialized value in Ubuntu Linux AppArmor IPv4/IPv6 socket mediation rulesEPSS 0.1%CVE-2026-58721MEDIUMIn multiple locations, there is a possible information disclosure due to uninitialized memory use. This could lead to local information discEPSS 0.1%CVE-2026-47330LOWUse of uninitialized value in Ubuntu Linux AppArmor notification handlingEPSS 0.1%CVE-2025-20771MEDIUMIn display, there is a possible escalation of privilege due to improper input validation. This could lead to local escalation of privilege iEPSS 0.1%CVE-2025-26448MEDIUMIn writeToParcel of CursorWindow.cpp, there is a possible out of bounds read due to uninitialized data. This could lead to local informationEPSS 0.1%CVE-2025-20766HIGHIn display, there is a possible memory corruption due to improper input validation. This could lead to local escalation of privilege if a maEPSS 0.1%CVE-2025-20784MEDIUMIn display, there is a possible memory corruption due to uninitialized data. This could lead to local escalation of privilege if a maliciousEPSS 0.1%CVE-2025-47348HIGHUse of Uninitialized Variable in HLOSEPSS 0.1%CVE-2025-36935HIGHIn trusty_ffa_mem_reclaim of shared-mem-smcall.c, there is a possible memory corruption due to uninitialized data. This could lead to local EPSS 0.1%