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-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%