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-50404MEDIUMfbdev: fbcon: release buffer when fbcon_do_set_font() failedEPSS 0.2%CVE-2026-12999MEDIUMInfineon Airoc Wi-Fi driver leaks TX buffers on send failure, leading to permanent pool exhaustionEPSS 0.2%CVE-2022-50420MEDIUMcrypto: hisilicon/hpre - fix resource leak in remove processEPSS 0.2%CVE-2023-53422MEDIUMwifi: iwlwifi: fw: fix memory leak in debugfsEPSS 0.2%CVE-2023-53271MEDIUMubi: Fix unreferenced object reported by kmemleak in ubi_resize_volume()EPSS 0.2%CVE-2023-53375MEDIUMtracing: Free error logs of tracing instancesEPSS 0.2%CVE-2023-53234MEDIUMwatchdog: Fix kmemleak in watchdog_cdev_registerEPSS 0.2%CVE-2022-50395MEDIUMintegrity: Fix memory leakage in keyring allocation error pathEPSS 0.2%CVE-2023-53318MEDIUMrecordmcount: Fix memory leaks in the uwrite functionEPSS 0.2%CVE-2022-50376MEDIUMorangefs: Fix kmemleak in orangefs_{kernel,client}_debug_init()EPSS 0.2%CVE-2022-50348MEDIUMnfsd: Fix a memory leak in an error handling pathEPSS 0.2%CVE-2022-50389MEDIUMtpm: tpm_crb: Add the missed acpi_put_table() to fix memory leakEPSS 0.2%CVE-2022-50352MEDIUMnet: hns: fix possible memory leak in hnae_ae_register()EPSS 0.2%CVE-2023-53224MEDIUMext4: Fix function prototype mismatch for ext4_feat_ktypeEPSS 0.2%CVE-2023-53241MEDIUMnfsd: call op_release, even when op_func returns an errorEPSS 0.2%CVE-2023-53230MEDIUMsmb: client: fix warning in cifs_smb3_do_mount()EPSS 0.2%CVE-2026-0639LOWliteos_a has a missing release of memory vulnerabilityEPSS 0.2%CVE-2022-50416MEDIUMirqchip/wpcm450: Fix memory leak in wpcm450_aic_of_init()EPSS 0.2%CVE-2022-50387MEDIUMnet: hinic: fix the issue of CMDQ memory leaksEPSS 0.2%CVE-2023-53279MEDIUMmisc: vmw_balloon: fix memory leak with using debugfs_lookup()EPSS 0.2%