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-49144MEDIUMio_uring: fix memory leak of uid in files registrationEPSS 0.3%CVE-2024-56715HIGHionic: Fix netdev notifier unregister on failureEPSS 0.3%CVE-2024-50236MEDIUMwifi: ath10k: Fix memory leak in management txEPSS 0.3%CVE-2026-54876HIGHClient-Side Memory Leak in OCSP Response CheckingEPSS 0.3%CVE-2022-49284MEDIUMcoresight: syscfg: Fix memleak on registration failure in cscfg_create_deviceEPSS 0.3%CVE-2021-47654MEDIUMsamples/landlock: Fix path_list memory leakEPSS 0.3%CVE-2022-49148MEDIUMwatch_queue: Free the page array when watch_queue is dismantledEPSS 0.3%CVE-2022-49153MEDIUMwireguard: socket: free skb in send6 when ipv6 is disabledEPSS 0.3%CVE-2022-49210MEDIUMMIPS: pgalloc: fix memory leak caused by pgd_free()EPSS 0.3%CVE-2022-49502MEDIUMmedia: rga: fix possible memory leak in rga_probeEPSS 0.3%CVE-2026-56368MEDIUMImageMagick - Memory Leak in Raw Pixel Data CodersEPSS 0.3%CVE-2023-51258MEDIUMA memory leak issue discovered in YASM v.1.3.0 allows a local attacker to cause a denial of service via the new_Token function in the moduleEPSS 0.3%CVE-2022-49369MEDIUMamt: fix possible memory leak in amt_rcv()EPSS 0.3%CVE-2022-49408MEDIUMext4: fix memory leak in parse_apply_sb_mount_options()EPSS 0.3%CVE-2022-49461MEDIUMamt: fix memory leak for advertisement messageEPSS 0.3%CVE-2022-49230MEDIUMmt76: mt7915: fix possible memory leak in mt7915_mcu_add_staEPSS 0.3%CVE-2022-49334MEDIUMmm/huge_memory: Fix xarray node memory leakEPSS 0.3%CVE-2022-49403MEDIUMlib/string_helpers: fix not adding strarray to device's resource listEPSS 0.3%CVE-2022-49126MEDIUMscsi: mpi3mr: Fix memory leaksEPSS 0.3%CVE-2023-52989MEDIUMfirewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP regionEPSS 0.3%