Fallos del tipo CWE-401

664 resultados

Vazamento de memória por falta de liberação

Ocorre quando o código aloca memória (heap, buffer ou outros recursos) mas nunca a libera adequadamente, mesmo após seu uso terminar. A memória fica presa e indisponível, consumindo recursos até o programa encerrar ou falhar. É especialmente crítico em serviços de longa execução (daemons, servidores) onde o vazamento se acumula.

Ejemplo

Um servidor web que cria um objeto para processar cada requisição, mas esquece de desalocá-lo no final do tratamento. Após milhares de requisições, a memória disponível se esgota e o serviço cai. Ou código em C que chama malloc() mas nunca free(), deixando a memória órfã.

Cómo mitigar

Use garbage collection ou linguagens gerenciadas quando possível; em C/C++, aplique padrões como RAII (Resource Acquisition Is Initialization) ou smart pointers; faça code review focado em pares alloc/free; use ferramentas como Valgrind ou AddressSanitizer para detectar vazamentos antes da produção.

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%