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-49527MEDIUMmedia: venus: hfi: avoid null dereference in deinitEPSS 0.3%CVE-2023-52984MEDIUMnet: phy: dp83822: Fix null pointer access on DP83825/DP83826 devicesEPSS 0.3%CVE-2025-38049MEDIUMx86/resctrl: Fix allocation of cleanest CLOSID on platforms with no monitorsEPSS 0.3%CVE-2022-49282MEDIUMf2fs: quota: fix loop condition at f2fs_quota_sync()EPSS 0.3%CVE-2025-50952MEDIUMopenjpeg v 2.5.0 was discovered to contain a NULL pointer dereference via the component /openjp2/dwt.c.EPSS 0.3%CVE-2026-76927MEDIUMNULL Pointer Dereference in WiresharkEPSS 0.3%CVE-2024-41866MEDIUMAdobe Indesign 2024 DOC File Parsing Null Pointer DereferenceEPSS 0.3%CVE-2023-3212—A NULL pointer dereference issue was found in the gfs2 file system in the Linux kernel. It occurs on corrupt gfs2 file systems when the evicEPSS 0.3%CVE-2022-49392MEDIUMserial: 8250_aspeed_vuart: Fix potential NULL dereference in aspeed_vuart_probeEPSS 0.3%CVE-2022-49071MEDIUMdrm/panel: ili9341: fix optional regulator handlingEPSS 0.3%CVE-2022-49329MEDIUMvduse: Fix NULL pointer dereference on sysfs accessEPSS 0.3%CVE-2025-21125MEDIUMInDesign Desktop | NULL Pointer Dereference (CWE-476)EPSS 0.3%CVE-2022-49061MEDIUMnet: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-linkEPSS 0.3%CVE-2022-49453MEDIUMsoc: ti: ti_sci_pm_domains: Check for null return of devm_kcallocEPSS 0.3%CVE-2022-49070MEDIUMfbdev: Fix unregistering of framebuffers without deviceEPSS 0.3%CVE-2023-22999MEDIUMIn the Linux kernel before 5.16.3, drivers/usb/dwc3/dwc3-qcom.c misinterprets the dwc3_qcom_create_urs_usb_platdev return value (expects it EPSS 0.3%CVE-2022-49487MEDIUMmtd: rawnand: intel: fix possible null-ptr-deref in ebu_nand_probe()EPSS 0.3%CVE-2022-49523MEDIUMath11k: disable spectral scan during spectral deinitEPSS 0.3%CVE-2022-49184MEDIUMnet: sparx5: switchdev: fix possible NULL pointer dereferenceEPSS 0.3%CVE-2022-49569MEDIUMspi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfersEPSS 0.3%