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-2024-56755MEDIUMnetfs/fscache: Add a memory barrier for FSCACHE_VOLUME_CREATINGEPSS 0.2%CVE-2024-58063MEDIUMwifi: rtlwifi: fix memory leaks and invalid access at probe error pathEPSS 0.2%CVE-2025-7068MEDIUMHDF5 H5FL.c H5FL__malloc memory leakEPSS 0.2%CVE-2026-1757MEDIUMLibxml2: memory leak leading to local denial of service in xmllint interactive shellEPSS 0.2%CVE-2024-53117MEDIUMvirtio/vsock: Improve MSG_ZEROCOPY error handlingEPSS 0.2%CVE-2024-53118MEDIUMvsock: Fix sk_error_queue memory leakEPSS 0.2%CVE-2023-52937MEDIUMHV: hv_balloon: fix memory leak with using debugfs_lookup()EPSS 0.2%CVE-2024-50214MEDIUMdrm/connector: hdmi: Fix memory leak in drm_display_mode_from_cea_vic()EPSS 0.2%CVE-2026-20021MEDIUMA vulnerability in the OSPF protocol of Cisco Secure Firewall Adaptive Security Appliance (ASA) Software and Cisco Secure Firewall Threat DeEPSS 0.2%CVE-2024-56613MEDIUMsched/numa: fix memory leak due to the overwritten vma->numab_stateEPSS 0.2%CVE-2022-22240MEDIUMJunos OS and Junos OS Evolved: An rpd memory leak might be observed while running a specific cli command in a RIB sharding scenarioEPSS 0.2%CVE-2024-50213MEDIUMdrm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()EPSS 0.2%CVE-2022-49757MEDIUMEDAC/highbank: Fix memory leak in highbank_mc_probe()EPSS 0.2%CVE-2022-50357MEDIUMusb: dwc3: core: fix some leaks in probeEPSS 0.2%CVE-2024-50165HIGHbpf: Preserve param->string when parsing mount optionsEPSS 0.2%CVE-2022-49915MEDIUMmISDN: fix possible memory leak in mISDN_register_device()EPSS 0.2%CVE-2022-49927MEDIUMnfs4: Fix kmemleak when allocate slot failedEPSS 0.2%CVE-2025-20135MEDIUMCisco Adaptive Security Appliance and Firepower Threat Defense Software DHCP Denial of Service VulnerabilityEPSS 0.2%CVE-2024-56729MEDIUMsmb: Initialize cfid->tcon before performing network opsEPSS 0.2%CVE-2026-14696MEDIUMEthernet bridge RX packet leak enables denial of service via RX buffer-pool exhaustionEPSS 0.2%