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-2023-52607MEDIUMpowerpc/mm: Fix null-pointer dereference in pgtable_cache_addEPSS 0.2%CVE-2022-49134MEDIUMmlxsw: spectrum: Guard against invalid local portsEPSS 0.2%CVE-2026-27214MEDIUMSubstance3D - Painter | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2026-27218MEDIUMSubstance3D - Painter | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2026-34703MEDIUMInDesign Desktop | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2021-32844MEDIUMHyperKit is a toolkit for embedding hypervisor capabilities in an application. In versions 0.20210107 and prior of HyperKit, ` vi_pci_write`EPSS 0.2%CVE-2024-56578MEDIUMmedia: imx-jpeg: Set video drvdata before register video deviceEPSS 0.2%CVE-2026-48267MEDIUMDNG SDK | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2024-56579MEDIUMmedia: amphion: Set video drvdata before register video deviceEPSS 0.2%CVE-2025-21669HIGHvsock/virtio: discard packets if the transport changesEPSS 0.2%CVE-2022-49125MEDIUMdrm/sprd: fix potential NULL dereferenceEPSS 0.2%CVE-2026-27215MEDIUMSubstance3D - Painter | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2021-32843MEDIUMHyperKit is a toolkit for embedding hypervisor capabilities in an application. In versions 0.20210107 and prior of HyperKit, `virtio.c` has EPSS 0.2%CVE-2026-34662MEDIUMIllustrator | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2024-38550MEDIUMASoC: kirkwood: Fix potential NULL dereferenceEPSS 0.2%CVE-2024-56569MEDIUMftrace: Fix regression with module command in stack_trace_filterEPSS 0.2%CVE-2024-50224MEDIUMspi: spi-fsl-dspi: Fix crash when not using GPIO chip selectEPSS 0.2%CVE-2026-48429MEDIUMSubstance3D - Designer | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2026-27217MEDIUMSubstance3D - Painter | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2026-34704MEDIUMInDesign Desktop | NULL Pointer Dereference (CWE-476)EPSS 0.2%