Falhas do tipo CWE-476

2.332 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-38559MEDIUMscsi: qedf: Ensure the copied buf is NUL terminatedEPSS 0.3%CVE-2023-52844MEDIUMmedia: vidtv: psi: Add check for kstrdupEPSS 0.3%CVE-2023-40032MEDIUMPotential segfault due to NULL pointer dereference in libvipsEPSS 0.3%CVE-2023-52858MEDIUMclk: mediatek: clk-mt7629: Add check for mtk_alloc_clk_dataEPSS 0.3%CVE-2024-56535MEDIUMwifi: rtw89: coex: check NULL return of kmalloc in btc_fw_set_monreg()EPSS 0.3%CVE-2022-49295HIGHnbd: call genl_unregister_family() first in nbd_cleanup()EPSS 0.3%CVE-2026-44710MEDIUMpam_usb: NULL pointer dereference from UDisks device fields causes PAM crash and login denial-of-serviceEPSS 0.3%CVE-2023-52765MEDIUMmfd: qcom-spmi-pmic: Fix revid implementationEPSS 0.3%CVE-2024-43759MEDIUMIllustrator | NULL Pointer Dereference (CWE-476)EPSS 0.3%CVE-2026-16829MEDIUMVulnerabilities in IBM AIX and PowerVM VIOSEPSS 0.3%CVE-2024-38548MEDIUMdrm: bridge: cdns-mhdp8546: Fix possible null pointer dereferenceEPSS 0.3%CVE-2025-2926MEDIUMHDF5 H5Ocache.c H5O__cache_chk_serialize null pointer dereferenceEPSS 0.3%CVE-2025-21642MEDIUMmptcp: sysctl: sched: avoid using current->nsproxyEPSS 0.3%CVE-2024-24445MEDIUMOpenAirInterface CN5G AMF (oai-cn5g-amf) <= 2.0.0 contains a null dereference in its handling of unsupported NGAP protocol messages which alEPSS 0.3%CVE-2023-23006MEDIUMIn the Linux kernel before 5.15.13, drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c misinterprets the mlx5_get_uars_page returnEPSS 0.2%CVE-2023-23001MEDIUMIn the Linux kernel before 5.16.3, drivers/scsi/ufs/ufs-mediatek.c misinterprets the regulator_get return value (expects it to be NULL in thEPSS 0.2%CVE-2023-4459MEDIUMKernel: vmxnet3: null pointer dereference in vmxnet3_rq_cleanup()EPSS 0.2%CVE-2025-21917MEDIUMusb: renesas_usbhs: Flush the notify_hotplug_workEPSS 0.2%CVE-2024-50665MEDIUMgpac 2.4 contains a SEGV at src/isomedia/drm_sample.c:1562:96 in isom_cenc_get_sai_by_saiz_saio in MP4Box.EPSS 0.2%CVE-2021-47503MEDIUMscsi: pm80xx: Do not call scsi_remove_host() in pm8001_alloc()EPSS 0.2%