Falhas do tipo CWE-401

664 resultados

Fuga de memória - liberação não realizada após uso

Ocorre quando o código aloca memória (heap ou recursos) mas falha em liberá-la quando não é mais necessária. A memória fica presa no processo, reduzindo gradualmente a memória disponível até causar degradação de performance ou crash. É especialmente crítico em serviços que rodam indefinidamente (daemons, APIs, servidores).

Exemplo

Um servidor web que processa requisições sem liberar buffers de conexão fechada. Após milhares de requisições, acumula KB/MB de lixo na memória. Ou uma função que abre arquivo/socket e retorna sem chamar close() em todos os caminhos possíveis (incluindo exceções).

Como mitigar

Use padrões como RAII (Resource Acquisition Is Initialization) em C++, try-finally ou context managers em Python/Java, ou verificadores de vazamento (valgrind, AddressSanitizer). Revise especialmente blocos de exceção e retornos prematuros. Testes de longa duração ajudam a detectar fugas acumulativas.

CVE-2022-49853MEDIUMnet: macvlan: fix memory leaks of macvlan_common_newlinkEPSS 0.2%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-2024-56746LOWfbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()EPSS 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-2025-6498MEDIUMHTACG tidy-html5 alloc.c defaultAlloc memory leakEPSS 0.2%CVE-2025-9165LOWLibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leakEPSS 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-2022-49874MEDIUMHID: hyperv: fix possible memory leak in mousevsc_probe()EPSS 0.2%CVE-2026-18313MEDIUMrpcapd memory leak in libpcap before 1.10.7EPSS 0.2%CVE-2022-49890MEDIUMcapabilities: fix potential memleak on error path from vfs_getxattr_alloc()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-2024-50172MEDIUMRDMA/bnxt_re: Fix a possible memory leakEPSS 0.2%CVE-2024-56542MEDIUMdrm/amd/display: fix a memleak issue when driver is removedEPSS 0.2%CVE-2022-49871MEDIUMnet: tun: Fix memory leaks of napi_get_fragsEPSS 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%