Fallos del tipo CWE-690

36 resultados

Desreferenciação de ponteiro nulo por retorno não validado

Ocorre quando uma função retorna NULL em caso de erro, mas o código que a chama não verifica esse retorno antes de usar o ponteiro. O programa tenta acessar memória apontada por um ponteiro nulo, causando falha ou comportamento indefinido. É um caso específico de ignorar o retorno de uma função crítica.

Ejemplo

Uma função malloc() retorna NULL quando falha na alocação, mas o código atribui o resultado diretamente a um ponteiro e começa a escrever dados nele sem validar. Ou uma função de configuração retorna NULL se o arquivo não existir, e o programa tenta ler campos da estrutura sem checar.

Cómo mitigar

Sempre validar retornos de funções que podem falhar (malloc, fopen, getenv, etc.) antes de desreferenciar o ponteiro. Use idiomas como 'if (!ptr) { tratar_erro; }' ou estruturas modernas que forçam essa validação em tempo de compilação.

CVE-2024-31196MEDIUMNULL Pointer Dereference in libfluid_msg libraryEPSS 0.4%CVE-2026-87086HIGHTanium addressed a denial of service vulnerability in Provision.EPSS 0.4%CVE-2026-24411HIGHiccDEV has Undefined Behavior and Null Pointer Deference in CIccTagXmlSegmentedCurve::ToXml()EPSS 0.4%CVE-2026-24410HIGHiccDEV has Undefined Behavior and Null Pointer Deference in CIccProfileXml::ParseBasic()EPSS 0.4%CVE-2026-24409HIGHiccDEV has Undefined Behavior and Null Pointer Deference in CIccTagXmlFloatNum<>::ParseXml()EPSS 0.4%CVE-2026-21689MEDIUMiccDEV has Type Confusion in CIccProfileXml::ParseBasic() at IccXML/IccLibXML/IccProfileXml.cppEPSS 0.3%CVE-2024-42329LOWJS - Crash on unexpected HTTP server responseEPSS 0.2%CVE-2024-42328LOWJS - Crash on empty HTTP server responseEPSS 0.2%CVE-2026-21502MEDIUMNULL Pointer Dereference in iccDEV XML Tag ParserEPSS 0.2%CVE-2026-21499MEDIUMNULL Pointer Dereference in iccDEV XML ParserEPSS 0.2%CVE-2026-21498MEDIUMNULL Pointer Dereference in iccDEV XML Calculator ParserEPSS 0.2%CVE-2026-21496MEDIUMNULL Pointer Dereference in iccDEV Signature ParserEPSS 0.2%CVE-2022-22233MEDIUMJunos OS and Junos OS Evolved: In an SR to LDP interworking scenario, with SRMS, when a specific low privileged command is issued on an ABR rpd will crashEPSS 0.2%CVE-2026-82946MEDIUMNull Pointer Dereference in Mailbox Error HandlingEPSS 0.2%CVE-2025-33192MEDIUMNVIDIA DGX Spark GB10 contains a vulnerability in SROOT firmware, where an attacker could cause an arbitrary memory read. A successful exploEPSS 0.2%CVE-2026-44638LOWlibsixel: NULL pointer dereferenceEPSS 0.1%