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-2025-25057LOWthird_party_NuttX has a memory leak vulnerabilityEPSS 0.1%CVE-2022-50400MEDIUMstaging: greybus: audio_helper: remove unused and wrong debugfs usageEPSS 0.1%CVE-2023-53330MEDIUMcaif: fix memory leak in cfctrl_linkup_request()EPSS 0.1%CVE-2023-53406MEDIUMUSB: gadget: pxa25x_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53415MEDIUMUSB: dwc3: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53418MEDIUMUSB: gadget: lpc32xx_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53412MEDIUMUSB: gadget: bcm63xx_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2025-39890MEDIUMwifi: ath12k: fix memory leak in ath12k_service_ready_ext_eventEPSS 0.1%CVE-2023-53255MEDIUMfirmware: stratix10-svc: Fix a potential resource leak in svc_create_memory_pool()EPSS 0.1%CVE-2023-53249MEDIUMclk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probeEPSS 0.1%CVE-2023-53379MEDIUMusb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()EPSS 0.1%CVE-2023-53424MEDIUMclk: mediatek: fix of_iomap memory leakEPSS 0.1%CVE-2023-53298MEDIUMnfc: fix memory leak of se_io context in nfc_genl_se_ioEPSS 0.1%CVE-2023-53441MEDIUMbpf: cpumap: Fix memory leak in cpu_map_update_elemEPSS 0.1%CVE-2023-53417MEDIUMUSB: sl811: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53435MEDIUMcassini: Fix a memory leak in the error handling path of cas_init_one()EPSS 0.1%CVE-2023-53423MEDIUMobjtool: Fix memory leak in create_static_call_sections()EPSS 0.1%CVE-2023-53288MEDIUMdrm/client: Fix memory leak in drm_client_modeset_probeEPSS 0.1%CVE-2023-53416MEDIUMUSB: isp1362: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53414MEDIUMscsi: snic: Fix memory leak with using debugfs_lookup()EPSS 0.1%