Falhas do tipo CWE-476

2.333 resultados

Desreferenciação de ponteiro nulo autenticado

O software permite que um usuário autenticado force a desreferenciação de um ponteiro ou referência nula, tipicamente ao passar valores inesperados ou inválidos a uma função. O aplicativo não valida adequadamente a entrada antes de usá-la, causando falha (crash) ou comportamento indefinido que pode levar a negação de serviço.

Exemplo

Um painel administrativo aceita um ID de usuário para deletar, mas não verifica se esse ID existe no banco antes de acessar seus atributos. Um admin autenticado passa ID=0 ou um valor que não corresponde a nenhum registro, e o código tenta acessar propriedades de um objeto nulo, derrubando a aplicação.

Como mitigar

Sempre valide e verifique que referências/ponteiros são válidos antes de desreferenciar: teste se o objeto existe, se o ID é válido e se está dentro do escopo esperado. Use assertions em desenvolvimento e tratamento de exceções robusto em produção para falhas inesperadas.

CVE-2021-29564LOWNull pointer dereference in `EditDistance`EPSS 0.2%CVE-2024-58022MEDIUMmailbox: th1520: Fix a NULL vs IS_ERR() bugEPSS 0.2%CVE-2026-3392MEDIUMFascinatedBox lily lily_emitter.c eval_tree null pointer dereferenceEPSS 0.2%CVE-2024-50118MEDIUMbtrfs: reject ro->rw reconfiguration if there are hard ro requirementsEPSS 0.2%CVE-2025-60473MEDIUMA NULL pointer dereference in the gf_filter_in_parent_chain function (/filter_core/filter_pid.c) of GPAC Project/MP4Box before 26.02.0 allowEPSS 0.2%CVE-2024-22524MEDIUMdnspod-sr 0dfbd37 is vulnerable to buffer overflow.EPSS 0.2%CVE-2024-50122MEDIUMPCI: Hold rescan lock while adding devices during host probeEPSS 0.2%CVE-2024-53069MEDIUMfirmware: qcom: scm: fix a NULL-pointer dereferenceEPSS 0.2%CVE-2026-90828MEDIUMGNU Binutils ELF Orphan Section ldelf.c elf_orphan_compatible null pointer dereferenceEPSS 0.2%CVE-2024-50277MEDIUMdm: fix a crash if blk_alloc_disk failsEPSS 0.2%CVE-2021-41215MEDIUMNull pointer exception in `DeserializeSparse`EPSS 0.2%CVE-2026-3387MEDIUMwren-lang wren wren_compiler.c getByteCountForArguments null pointer dereferenceEPSS 0.2%CVE-2026-3665MEDIUMxlnt-community xlnt XLSX File xlsx_consumer.cpp read_office_document null pointer dereferenceEPSS 0.2%CVE-2021-41217MEDIUMNull pointer exception when `Exit` node is not preceded by `Enter` opEPSS 0.2%CVE-2023-53366MEDIUMblock: be a bit more careful in checking for NULL bdev while pollingEPSS 0.2%CVE-2025-22002MEDIUMnetfs: Call `invalidate_cache` only if implementedEPSS 0.2%CVE-2023-1382MEDIUMA data race flaw was found in the Linux kernel, between where con is allocated and con->sock is set. This issue leads to a NULL pointer dereEPSS 0.2%CVE-2025-21990MEDIUMdrm/amdgpu: NULL-check BO's backing store when determining GFX12 PTE flagsEPSS 0.2%CVE-2025-21989MEDIUMdrm/amd/display: fix missing .is_two_pixels_per_containerEPSS 0.2%CVE-2025-22006MEDIUMnet: ethernet: ti: am65-cpsw: Fix NAPI registration sequenceEPSS 0.2%