Fallos del tipo CWE-457

293 resultados

Uso de variável não inicializada

Ocorre quando o código usa uma variável antes de atribuir um valor válido a ela. A variável contém lixo de memória (valores aleatórios deixados por operações anteriores), levando a comportamento imprevisível: falhas, execução de código não intencional ou exposição de dados sensíveis.

Ejemplo

Um programa lê um arquivo de configuração em uma variável sem garantir que ela foi preenchida antes de usá-la em uma operação crítica. Se a leitura falhar silenciosamente, a variável mantém seu conteúdo anterior (senha de outro processo, por exemplo) e é transmitida para um servidor remoto.

Cómo mitigar

Sempre inicialize variáveis com valores seguros (zero, null ou constante adequada) no ponto de declaração. Use análise estática (linters, compiladores com flags como -Wall -Wuninitialized em C/C++) para detectar essas falhas antes da compilação.

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%