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-49566MEDIUMcrypto: qat - fix memory leak in RSAEPSS 0.3%CVE-2022-49144MEDIUMio_uring: fix memory leak of uid in files registrationEPSS 0.3%CVE-2024-56715HIGHionic: Fix netdev notifier unregister on failureEPSS 0.3%CVE-2026-54876HIGHClient-Side Memory Leak in OCSP Response CheckingEPSS 0.3%CVE-2022-49502MEDIUMmedia: rga: fix possible memory leak in rga_probeEPSS 0.3%CVE-2022-49153MEDIUMwireguard: socket: free skb in send6 when ipv6 is disabledEPSS 0.3%CVE-2022-49148MEDIUMwatch_queue: Free the page array when watch_queue is dismantledEPSS 0.3%CVE-2024-50236MEDIUMwifi: ath10k: Fix memory leak in management txEPSS 0.3%CVE-2022-49210MEDIUMMIPS: pgalloc: fix memory leak caused by pgd_free()EPSS 0.3%CVE-2022-49284MEDIUMcoresight: syscfg: Fix memleak on registration failure in cscfg_create_deviceEPSS 0.3%CVE-2021-47654MEDIUMsamples/landlock: Fix path_list memory leakEPSS 0.3%CVE-2025-50949MEDIUMFontForge v20230101 was discovered to contain a memory leak via the component DlgCreate8.EPSS 0.3%CVE-2026-56368MEDIUMImageMagick - Memory Leak in Raw Pixel Data CodersEPSS 0.3%CVE-2025-50951MEDIUMFontForge v20230101 was discovered to contain a memory leak via the utf7toutf8_copy function at /fontforge/sfd.c.EPSS 0.3%CVE-2023-51258MEDIUMA memory leak issue discovered in YASM v.1.3.0 allows a local attacker to cause a denial of service via the new_Token function in the moduleEPSS 0.3%CVE-2022-49369MEDIUMamt: fix possible memory leak in amt_rcv()EPSS 0.3%CVE-2022-49334MEDIUMmm/huge_memory: Fix xarray node memory leakEPSS 0.3%CVE-2022-49461MEDIUMamt: fix memory leak for advertisement messageEPSS 0.3%CVE-2022-49408MEDIUMext4: fix memory leak in parse_apply_sb_mount_options()EPSS 0.3%CVE-2022-49403MEDIUMlib/string_helpers: fix not adding strarray to device's resource listEPSS 0.3%