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-2025-21770MEDIUMiommu: Fix potential memory leak in iopf_queue_remove_device()EPSS 0.2%CVE-2024-50252MEDIUMmlxsw: spectrum_ipip: Fix memory leak when changing remote IPv6 addressEPSS 0.2%CVE-2022-49853MEDIUMnet: macvlan: fix memory leaks of macvlan_common_newlinkEPSS 0.2%CVE-2024-56746LOWfbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()EPSS 0.2%CVE-2025-6498MEDIUMHTACG tidy-html5 alloc.c defaultAlloc memory leakEPSS 0.2%CVE-2025-9165LOWLibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leakEPSS 0.2%CVE-2024-39539MEDIUMJunos OS: MX Series: Continuous subscriber logins will lead to a memory leak and eventually an FPC crashEPSS 0.2%CVE-2022-50355HIGHstaging: vt6655: fix some erroneous memory clean-up loopsEPSS 0.2%CVE-2025-22005MEDIUMipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().EPSS 0.2%CVE-2024-56742LOWvfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()EPSS 0.2%CVE-2024-56745LOWPCI: Fix reset_method_store() memory leakEPSS 0.2%CVE-2024-35829MEDIUMdrm/lima: fix a memleak in lima_heap_allocEPSS 0.2%CVE-2026-18313MEDIUMrpcapd memory leak in libpcap before 1.10.7EPSS 0.2%CVE-2024-50172MEDIUMRDMA/bnxt_re: Fix a possible memory leakEPSS 0.2%CVE-2022-49874MEDIUMHID: hyperv: fix possible memory leak in mousevsc_probe()EPSS 0.2%CVE-2022-49890MEDIUMcapabilities: fix potential memleak on error path from vfs_getxattr_alloc()EPSS 0.2%CVE-2022-49871MEDIUMnet: tun: Fix memory leaks of napi_get_fragsEPSS 0.2%CVE-2024-56542MEDIUMdrm/amd/display: fix a memleak issue when driver is removedEPSS 0.2%CVE-2025-21737MEDIUMceph: fix memory leak in ceph_mds_auth_match()EPSS 0.2%CVE-2024-56755MEDIUMnetfs/fscache: Add a memory barrier for FSCACHE_VOLUME_CREATINGEPSS 0.2%