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-0078MEDIUMCVEEPSS 0.2%CVE-2026-1991MEDIUMlibuvc UVC Descriptor device.c uvc_scan_streaming null pointer dereferenceEPSS 0.2%CVE-2022-49889MEDIUMring-buffer: Check for NULL cpu_buffer in ring_buffer_wake_waiters()EPSS 0.2%CVE-2026-21492MEDIUMiccDEV ToneMap Writer has NULL Pointer Member CallEPSS 0.2%CVE-2025-31163MEDIUMfig2dev segmentation faultEPSS 0.2%CVE-2024-23808MEDIUMArkcompiler ets frontend has an out-of-bounds read vulnerabilityEPSS 0.2%CVE-2022-49864MEDIUMdrm/amdkfd: Fix NULL pointer dereference in svm_migrate_to_ram()EPSS 0.2%CVE-2022-49300MEDIUMnbd: fix race between nbd_alloc_config() and module removalEPSS 0.2%CVE-2020-36789MEDIUMcan: dev: can_get_echo_skb(): prevent call to kfree_skb() in hard IRQ contextEPSS 0.2%CVE-2025-31202MEDIUMA null pointer dereference was addressed with improved input validation. This issue is fixed in iOS 18.4 and iPadOS 18.4, macOS Sequoia 15.4EPSS 0.2%CVE-2025-21980MEDIUMsched: address a potential NULL pointer dereference in the GRED scheduler.EPSS 0.2%CVE-2023-28327MEDIUMA NULL pointer dereference flaw was found in the UNIX protocol in net/unix/diag.c In unix_diag_get_exact in the Linux Kernel. The newly alloEPSS 0.2%CVE-2024-13978LOWLibTIFF fax2ps tiff2pdf.c t2p_read_tiff_init null pointer dereferenceEPSS 0.2%CVE-2024-12227MEDIUMMSI Dragon Center IOCTL NTIOLib_X64.sys MmUnMapIoSpace null pointer dereferenceEPSS 0.2%CVE-2021-29541LOWNull pointer dereference in `StringNGrams`EPSS 0.2%CVE-2021-29572LOWReference binding to nullptr in `SdcaOptimizer`EPSS 0.2%CVE-2021-29565LOWNull pointer dereference in `SparseFillEmptyRows`EPSS 0.2%CVE-2025-3010MEDIUMKhronos Group glslang Intermediate.cpp isConversionAllowed null pointer dereferenceEPSS 0.2%CVE-2026-24515LOWIn libexpat before 2.7.4, XML_ExternalEntityParserCreate does not copy unknown encoding handler user data.EPSS 0.2%CVE-2021-29564LOWNull pointer dereference in `EditDistance`EPSS 0.2%