Falhas do tipo CWE-401

664 resultados

Fuga de memória - liberação não realizada após uso

Ocorre quando o código aloca memória (heap ou recursos) mas falha em liberá-la quando não é mais necessária. A memória fica presa no processo, reduzindo gradualmente a memória disponível até causar degradação de performance ou crash. É especialmente crítico em serviços que rodam indefinidamente (daemons, APIs, servidores).

Exemplo

Um servidor web que processa requisições sem liberar buffers de conexão fechada. Após milhares de requisições, acumula KB/MB de lixo na memória. Ou uma função que abre arquivo/socket e retorna sem chamar close() em todos os caminhos possíveis (incluindo exceções).

Como mitigar

Use padrões como RAII (Resource Acquisition Is Initialization) em C++, try-finally ou context managers em Python/Java, ou verificadores de vazamento (valgrind, AddressSanitizer). Revise especialmente blocos de exceção e retornos prematuros. Testes de longa duração ajudam a detectar fugas acumulativas.

CVE-2022-49334MEDIUMmm/huge_memory: Fix xarray node memory leakEPSS 0.3%CVE-2026-33852HIGHMissing Release of Memory after Effective Lifetime in MolotovCherry Android-ImageMagick7EPSS 0.3%CVE-2026-56371MEDIUMImageMagick - Memory Leak in TXT File Processing via Texture AttributeEPSS 0.3%CVE-2022-1651A memory leak flaw was found in the Linux kernel in acrn_dev_ioctl in the drivers/virt/acrn/hsm.c function in how the ACRN Device Model emulEPSS 0.3%CVE-2022-49126MEDIUMscsi: mpi3mr: Fix memory leaksEPSS 0.3%CVE-2022-49116MEDIUMBluetooth: use memset avoid memory leaksEPSS 0.3%CVE-2023-52989MEDIUMfirewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP regionEPSS 0.3%CVE-2025-21595HIGHJunos OS and Junos OS Evolved: In an EVPN-VXLAN scenario specific ARP or NDP packets cause FPC to crashEPSS 0.3%CVE-2026-21909HIGHJunos OS and Junos OS Evolved: Receipt of specific IS-IS update packet causes memory leak leading to RPD crashEPSS 0.3%CVE-2021-47644MEDIUMmedia: staging: media: zoran: move videodev allocEPSS 0.3%CVE-2024-50167MEDIUMbe2net: fix potential memory leak in be_xmit()EPSS 0.3%CVE-2023-47384MEDIUMMP4Box GPAC v2.3-DEV-rev617-g671976fcc-master was discovered to contain a memory leak in the function gf_isom_add_chapter at /isomedia/isom_EPSS 0.3%CVE-2021-47648MEDIUMgpu: host1x: Fix a memory leak in 'host1x_remove()'EPSS 0.3%CVE-2023-2700MEDIUMA vulnerability was found in libvirt. This security flaw ouccers due to repeatedly querying an SR-IOV PCI device's capabilities that exposesEPSS 0.3%CVE-2022-49107MEDIUMceph: fix memory leak in ceph_readdir when note_last_dentry returns errorEPSS 0.3%CVE-2024-56534MEDIUMisofs: avoid memory leak in iocharsetEPSS 0.3%CVE-2022-3577HIGHAn out-of-bounds memory write flaw was found in the Linux kernel’s Kid-friendly Wired Controller driver. This flaw allows a local user to crEPSS 0.3%CVE-2022-49105MEDIUMstaging: wfx: fix an error handling in wfx_init_common()EPSS 0.2%CVE-2021-0293MEDIUMJunos OS: Out-of-memory condition and crashes can occur after executing a certain CLI command repeatedlyEPSS 0.2%CVE-2024-56710LOWceph: fix memory leak in ceph_direct_read_write()EPSS 0.2%