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-2022-49184MEDIUMnet: sparx5: switchdev: fix possible NULL pointer dereferenceEPSS 0.3%CVE-2022-49453MEDIUMsoc: ti: ti_sci_pm_domains: Check for null return of devm_kcallocEPSS 0.3%CVE-2022-49329MEDIUMvduse: Fix NULL pointer dereference on sysfs accessEPSS 0.3%CVE-2022-47024HIGHA null pointer dereference issue was discovered in function gui_x11_create_blank_mouse in gui_x11.c in vim 8.1.2269 thru 9.0.0339 allows attEPSS 0.3%CVE-2022-49096HIGHnet: sfc: add missing xdp queue reinitializationEPSS 0.3%CVE-2022-49476MEDIUMmt76: mt7921: fix kernel crash at mt7921_pci_removeEPSS 0.3%CVE-2021-47386HIGHhwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary structure fieldEPSS 0.3%CVE-2021-47652MEDIUMvideo: fbdev: smscufx: Fix null-ptr-deref in ufx_usb_probe()EPSS 0.3%CVE-2023-46051LOWTeX Live 944e257 allows a NULL pointer dereference in texk/web2c/pdftexdir/tounicode.c. NOTE: this is disputed because it should be categoriEPSS 0.3%CVE-2024-53060MEDIUMdrm/amdgpu: prevent NULL pointer dereference if ATIF is not supportedEPSS 0.3%CVE-2024-50153MEDIUMscsi: target: core: Fix null-ptr-deref in target_alloc_device()EPSS 0.3%CVE-2022-49483MEDIUMdrm/msm/disp/dpu1: avoid clearing hw interrupts if hw_intr is null during drm uninitEPSS 0.3%CVE-2022-49510MEDIUMdrm/omap: fix NULL but dereferenced coccicheck errorEPSS 0.3%CVE-2023-6915MEDIUMKernel: null pointer dereference vulnerability in ida_free in lib/idr.cEPSS 0.3%CVE-2024-20312HIGHA vulnerability in the Intermediate System-to-Intermediate System (IS-IS) protocol of Cisco IOS Software and Cisco IOS XE Software could allEPSS 0.3%CVE-2024-56536MEDIUMwifi: cw1200: Fix potential NULL dereferenceEPSS 0.3%CVE-2022-49615MEDIUMASoC: rt711-sdca: fix kernel NULL pointer dereference when IO errorEPSS 0.3%CVE-2024-53877LOWNVIDIA CUDA toolkit for all platforms contains a vulnerability in the nvdisasm binary, where a user could cause a NULL pointer exception by EPSS 0.3%CVE-2022-49618MEDIUMpinctrl: aspeed: Fix potential NULL dereference in aspeed_pinmux_set_mux()EPSS 0.3%CVE-2025-8844MEDIUMNASM Netwide Assember preproc.c parse_smacro_template null pointer dereferenceEPSS 0.3%