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-49494MEDIUMmtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()EPSS 0.3%CVE-2025-25471MEDIUMFFmpeg git master before commit fd1772 was discovered to contain a NULL pointer dereference via the component libavformat/mov.c.EPSS 0.3%CVE-2022-49649MEDIUMxen/netback: avoid entering xenvif_rx_next_skb() with an empty rx queueEPSS 0.3%CVE-2022-49139MEDIUMBluetooth: fix null ptr deref on hci_sync_conn_complete_evtEPSS 0.3%CVE-2025-65496MEDIUMNULL pointer dereference in coap_dtls_generate_cookie() in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote attackers to cause a deniaEPSS 0.3%CVE-2025-65498MEDIUMNULL pointer dereference in coap_dtls_generate_cookie() in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote attackers to cause a deniaEPSS 0.3%CVE-2025-2588MEDIUMHercules Augeas fa.c re_case_expand null pointer dereferenceEPSS 0.3%CVE-2025-65500MEDIUMNULL pointer dereference in coap_dtls_generate_cookie() in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote attackers to cause a deniaEPSS 0.3%CVE-2023-22997MEDIUMIn the Linux kernel before 6.1.2, kernel/module/decompress.c misinterprets the module_get_next_page return value (expects it to be NULL in tEPSS 0.3%CVE-2025-22065MEDIUMidpf: fix adapter NULL pointer dereference on rebootEPSS 0.3%CVE-2025-65497MEDIUMNULL pointer dereference in coap_dtls_generate_cookie() in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote attackers to cause a deniaEPSS 0.3%CVE-2025-36894HIGHIn TBD of TBD, there is a possible DoS due to a missing null check. This could lead to remote denial of service with no additional executionEPSS 0.3%CVE-2025-40576MEDIUMA vulnerability has been identified in SCALANCE LPE9403 (6GK5998-3GS00-2AC2) (All versions < V4.0 HF0). Affected devices do not properly valEPSS 0.3%CVE-2025-65501MEDIUMNull pointer dereference in coap_dtls_info_callback() in OISM libcoap 4.3.5 allows remote attackers to cause a denial of service via a DTLS EPSS 0.3%CVE-2022-49703MEDIUMscsi: ibmvfc: Store vhost pointer during subcrq allocationEPSS 0.3%CVE-2022-49130MEDIUMath11k: mhi: use mhi_sync_power_up()EPSS 0.3%CVE-2022-49319MEDIUMiommu/arm-smmu-v3: check return value after calling platform_get_resource()EPSS 0.3%CVE-2022-49544MEDIUMipw2x00: Fix potential NULL dereference in libipw_xmit()EPSS 0.3%CVE-2022-49527MEDIUMmedia: venus: hfi: avoid null dereference in deinitEPSS 0.3%CVE-2023-53005MEDIUMtrace_events_hist: add check for return value of 'create_hist_field'EPSS 0.3%