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-2023-23000MEDIUMIn the Linux kernel before 5.17, drivers/phy/tegra/xusb.c mishandles the tegra_xusb_find_port_node return value. Callers expect NULL in the EPSS 0.3%CVE-2023-48363HIGHA vulnerability has been identified in OpenPCS 7 V9.1 (All versions < V9.1 SP2 UC05), SIMATIC BATCH V9.1 (All versions < V9.1 SP2 UC05), SIMEPSS 0.3%CVE-2023-48364HIGHA vulnerability has been identified in OpenPCS 7 V9.1 (All versions < V9.1 SP2 UC05), SIMATIC BATCH V9.1 (All versions < V9.1 SP2 UC05), SIMEPSS 0.3%CVE-2025-57611MEDIUMAn issue was discovered in rust-ffmpeg 0.3.0 (after comit 5ac0527) Null pointer dereference vulnerability in the dump() method allows an attEPSS 0.3%CVE-2022-49459MEDIUMthermal/drivers/broadcom: Fix potential NULL dereference in sr_thermal_probeEPSS 0.3%CVE-2025-15504MEDIUMlief-project LIEF ELF Binary Parser.tcc parse_binary null pointer dereferenceEPSS 0.3%CVE-2022-49232MEDIUMdrm/amd/display: Fix a NULL pointer dereference in amdgpu_dm_connector_add_common_modes()EPSS 0.3%CVE-2022-49498MEDIUMALSA: pcm: Check for null pointer of pointer substream before dereferencing itEPSS 0.3%CVE-2022-0168—A denial of service (DOS) issue was found in the Linux kernel’s smb2_ioctl_query_info function in the fs/cifs/smb2ops.c Common Internet FileEPSS 0.3%CVE-2022-49187MEDIUMclk: Fix clk_hw_get_clk() when dev is NULLEPSS 0.3%CVE-2022-49449MEDIUMpinctrl: renesas: rzn1: Fix possible null-ptr-deref in sh_pfc_map_resources()EPSS 0.3%CVE-2026-76650MEDIUMPre-Authentication NULL Pointer Dereference in UPnP SOAP State Variable Query Processing in TP-Link TL-WR841NEPSS 0.3%CVE-2026-76649MEDIUMPre-Authentication NULL Pointer Dereference in UPnP SOAP Action Request Processing in TP-Link TL-WR841NEPSS 0.3%CVE-2023-23005MEDIUMIn the Linux kernel before 6.2, mm/memory-tiers.c misinterprets the alloc_memory_type return value (expects it to be NULL in the error case,EPSS 0.3%CVE-2022-49060MEDIUMnet/smc: Fix NULL pointer dereference in smc_pnet_find_ib()EPSS 0.3%CVE-2022-49494MEDIUMmtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()EPSS 0.3%CVE-2022-49376MEDIUMscsi: sd: Fix potential NULL pointer dereferenceEPSS 0.3%CVE-2022-49302MEDIUMUSB: host: isp116x: check return value after calling platform_get_resource()EPSS 0.3%CVE-2022-49375MEDIUMrtc: mt6397: check return value after calling platform_get_resource()EPSS 0.3%CVE-2022-49485MEDIUMdrm/v3d: Fix null pointer dereference of pointer perfmonEPSS 0.3%