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-2025-54270MEDIUMAnimate | NULL Pointer Dereference (CWE-476)EPSS 0.2%CVE-2025-21636MEDIUMsctp: sysctl: plpmtud_probe_interval: avoid using current->nsproxyEPSS 0.2%CVE-2024-56711MEDIUMdrm/panel: himax-hx83102: Add a check to prevent NULL pointer dereferenceEPSS 0.2%CVE-2024-50160MEDIUMALSA: hda/cs8409: Fix possible NULL dereferenceEPSS 0.2%CVE-2025-21644MEDIUMdrm/xe: Fix tlb invalidation when wedgingEPSS 0.2%CVE-2024-48873MEDIUMwifi: rtw89: check return value of ieee80211_probereq_get() for RNREPSS 0.2%CVE-2024-50156MEDIUMdrm/msm: Avoid NULL dereference in msm_disp_state_print_regs()EPSS 0.2%CVE-2024-56544MEDIUMudmabuf: change folios array from kmalloc to kvmallocEPSS 0.2%CVE-2023-1095MEDIUMIn nf_tables_updtable, if nf_tables_table_enable returns an error, nft_trans_destroy is called to free the transaction object. nft_trans_desEPSS 0.2%CVE-2024-34136MEDIUMAdobe Illustrator PSD File Parsing Null Pointer dereferenceEPSS 0.2%CVE-2025-23136MEDIUMthermal: int340x: Add NULL check for adevEPSS 0.2%CVE-2024-53199MEDIUMASoC: imx-audmix: Add NULL check in imx_audmix_probeEPSS 0.2%CVE-2022-41972LOWContiki-NG contains NULL Pointer Dereference in BLE L2CAP moduleEPSS 0.2%CVE-2024-34138MEDIUMAdobe Illustrator CGM File Parsing Division By zeroEPSS 0.2%CVE-2024-58011MEDIUMplatform/x86: int3472: Check for adev == NULLEPSS 0.2%CVE-2021-47440LOWnet: encx24j600: check error in devm_regmap_init_encx24j600EPSS 0.2%CVE-2021-29592MEDIUMNull pointer dereference in TFLite's `Reshape` operatorEPSS 0.2%CVE-2025-8835MEDIUMJasPer Image Color Space Conversion jas_image.c jas_image_chclrspc null pointer dereferenceEPSS 0.2%CVE-2024-56702MEDIUMbpf: Mark raw_tp arguments with PTR_MAYBE_NULLEPSS 0.2%CVE-2024-58012MEDIUMASoC: SOF: Intel: hda-dai: Ensure DAI widget is valid during paramsEPSS 0.2%