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-2023-53424MEDIUMclk: mediatek: fix of_iomap memory leakEPSS 0.1%CVE-2023-53441MEDIUMbpf: cpumap: Fix memory leak in cpu_map_update_elemEPSS 0.1%CVE-2023-53423MEDIUMobjtool: Fix memory leak in create_static_call_sections()EPSS 0.1%CVE-2023-53416MEDIUMUSB: isp1362: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53436MEDIUMscsi: snic: Fix possible memory leak if device_add() failsEPSS 0.1%CVE-2023-53435MEDIUMcassini: Fix a memory leak in the error handling path of cas_init_one()EPSS 0.1%CVE-2023-53409MEDIUMdrivers: base: component: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2022-50400MEDIUMstaging: greybus: audio_helper: remove unused and wrong debugfs usageEPSS 0.1%CVE-2023-53290MEDIUMsamples/bpf: Fix fout leak in hbm's run_bpf_progEPSS 0.1%CVE-2023-53402MEDIUMkernel/printk/index.c: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53407MEDIUMUSB: gadget: pxa27x_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53405MEDIUMUSB: gadget: gr_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53300MEDIUMmedia: hi846: Fix memleak in hi846_init_controls()EPSS 0.1%CVE-2023-53412MEDIUMUSB: gadget: bcm63xx_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2025-39852MEDIUMnet/tcp: Fix socket memory leak in TCP-AO failure handling for IPv6EPSS 0.1%CVE-2024-43696LOWLiteos_a has an Memory Leak vulnerabilityEPSS 0.1%CVE-2023-53439MEDIUMnet: skb_partial_csum_set() fix against transport header magic valueEPSS 0.1%CVE-2026-10677MEDIUMKernel heap memory leak in `z_vrfy_k_poll()` lets an unprivileged user thread exhaust the kernel resource poolEPSS 0.1%CVE-2023-53385MEDIUMmedia: mdp3: Fix resource leaks in of_find_device_by_nodeEPSS 0.1%CVE-2023-53410MEDIUMUSB: ULPI: fix memory leak with using debugfs_lookup()EPSS 0.1%