Weaknesses of type CWE-401

664 results

Vazamento de memória por falta de liberação

Ocorre quando o programa aloca memória (heap ou recursos) mas não a libera adequadamente após seu uso, deixando-a inacessível para reutilização. O memory leaker consome progressivamente mais RAM, degradando performance e podendo levar a negação de serviço, especialmente em aplicações de longa duração ou servidores.

Example

Um servidor web que cria um objeto para processar cada requisição mas esquece de chamar `free()` ou `delete` ao final. Depois de milhões de requisições, toda memória disponível está consumida por objetos orphans e o servidor para de responder.

How to mitigate

Use análise estática (static analyzers) ou ferramentas de profiling (valgrind, sanitizers do GCC/Clang) para detectar leaks em desenvolvimento. Em linguagens com garbage collection, garanta que objetos saiam de escopo corretamente; em C/C++, libere sempre o que alocou, ou prefira smart pointers (unique_ptr, shared_ptr) que liberam automaticamente.

CVE-2022-49230MEDIUMmt76: mt7915: fix possible memory leak in mt7915_mcu_add_staEPSS 0.3%CVE-2022-49126MEDIUMscsi: mpi3mr: Fix memory leaksEPSS 0.3%CVE-2023-52989MEDIUMfirewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP regionEPSS 0.3%CVE-2022-49116MEDIUMBluetooth: use memset avoid memory leaksEPSS 0.3%CVE-2022-1651—A 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-2026-56371MEDIUMImageMagick - Memory Leak in TXT File Processing via Texture AttributeEPSS 0.3%CVE-2026-33852HIGHMissing Release of Memory after Effective Lifetime in MolotovCherry Android-ImageMagick7EPSS 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-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-47644MEDIUMmedia: staging: media: zoran: move videodev allocEPSS 0.3%CVE-2024-50167MEDIUMbe2net: fix potential memory leak in be_xmit()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-2024-56710LOWceph: fix memory leak in ceph_direct_read_write()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-2022-49105MEDIUMstaging: wfx: fix an error handling in wfx_init_common()EPSS 0.2%