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-2024-57881MEDIUMmm/page_alloc: don't call pfn_to_page() on possibly non-existent PFN in split_large_buddy()EPSS 0.2%CVE-2024-56773MEDIUMkunit: Fix potential null dereference in kunit_device_driver_test()EPSS 0.2%CVE-2025-1470MEDIUMEclipse OMR: Null pointer dereference vulnerabilityEPSS 0.2%CVE-2024-50238MEDIUMphy: qcom: qmp-usbc: fix NULL-deref on runtime suspendEPSS 0.2%CVE-2026-50126MEDIUMadaguc-server GeoJSON coordinate parser (CConvertGeoJSON.cpp) vulnerable to out-of-bounds read and NULL pointer dereferenceEPSS 0.2%CVE-2024-56730MEDIUMnet/9p/usbg: fix handling of the failed kzalloc() memory allocationEPSS 0.2%CVE-2024-58081MEDIUMclk: mmp2: call pm_genpd_init() only after genpd.name is setEPSS 0.2%CVE-2024-58062MEDIUMwifi: iwlwifi: mvm: avoid NULL pointer dereferenceEPSS 0.2%CVE-2024-34952MEDIUMtaurusxin ncmdump v1.3.2 was discovered to contain a segmentation violation via the NeteaseCrypt::FixMetadata() function at /src/ncmcrypt.cpEPSS 0.2%CVE-2021-37659HIGHOut of bounds read via null pointer dereference in TensorFlowEPSS 0.2%CVE-2025-21641MEDIUMmptcp: sysctl: blackhole timeout: avoid using current->nsproxyEPSS 0.2%CVE-2024-58064MEDIUMwifi: cfg80211: tests: Fix potential NULL dereference in test_cfg80211_parse_colocated_ap()EPSS 0.2%CVE-2026-20787HIGHNull pointer dereference for some Intel(R) PROSet/Wireless WiFi Software for Windows within Ring 2: Device Drivers may allow a denial of serEPSS 0.2%CVE-2026-91781MEDIUMGNU Binutils ELF Section elf64-x86-64.c elf_x86_64_common_section_index null pointer dereferenceEPSS 0.2%CVE-2024-57799MEDIUMphy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PMEPSS 0.2%CVE-2024-58084MEDIUMfirmware: qcom: scm: Fix missing read barrier in qcom_scm_get_tzmem_pool()EPSS 0.2%CVE-2026-91782MEDIUMGNU Binutils Dynamic Relocation Allocation elfxx-x86.c elf_x86_allocate_dynrelocs null pointer dereferenceEPSS 0.2%CVE-2026-34541MEDIUMiccDEV: UB in CIccCombinedConnectionConditions::CIccCombinedConnectionConditions()EPSS 0.2%CVE-2026-34551MEDIUMiccDEV: NPD in CIccTagLut16::Write()EPSS 0.2%CVE-2024-53235MEDIUMerofs: fix file-backed mounts over FUSEEPSS 0.2%