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-2023-53028HIGHRevert "wifi: mac80211: fix memory leak in ieee80211_if_add()"EPSS 0.2%CVE-2023-53346MEDIUMkernel/fail_function: fix memory leak with using debugfs_lookup()EPSS 0.2%CVE-2023-53349MEDIUMmedia: ov2740: Fix memleak in ov2740_init_controls()EPSS 0.2%CVE-2026-33775HIGHJunos OS: MX Series: Mismatch between configured and received packet types causes memory leak in bbe-smgdEPSS 0.2%CVE-2025-21981MEDIUMice: fix memory leak in aRFS after resetEPSS 0.2%CVE-2022-49881MEDIUMwifi: cfg80211: fix memory leak in query_regdb_file()EPSS 0.2%CVE-2026-78124LOWstrongSwan 5.0.2 through 6.0.7 allows PKCS#7 certificate enumeration in the openssl plugin that leads to a lack of release of memory after iEPSS 0.2%CVE-2026-7379MEDIUMMissing Release of Memory after Effective Lifetime in WiresharkEPSS 0.2%CVE-2022-49891MEDIUMtracing: kprobe: Fix memory leak in test_gen_kprobe/kretprobe_cmd()EPSS 0.2%CVE-2022-49857MEDIUMnet: marvell: prestera: fix memory leak in prestera_rxtx_switch_init()EPSS 0.2%CVE-2022-49866MEDIUMnet: wwan: mhi: fix memory leak in mhi_mbim_dellinkEPSS 0.2%CVE-2026-61870LOWImageMagick before 7.1.2-26 Memory Leak via VIFF EncoderEPSS 0.2%CVE-2022-49906MEDIUMibmvnic: Free rwi on reset successEPSS 0.2%CVE-2022-49837MEDIUMbpf: Fix memory leaks in __check_func_callEPSS 0.2%CVE-2022-49855MEDIUMnet: wwan: iosm: fix memory leak in ipc_pcie_read_bios_cfgEPSS 0.2%CVE-2022-49908MEDIUMBluetooth: L2CAP: Fix memory leak in vhci_writeEPSS 0.2%CVE-2022-49902MEDIUMblock: Fix possible memory leak for rq_wb on add_disk failureEPSS 0.2%CVE-2022-49860MEDIUMdmaengine: ti: k3-udma-glue: fix memory leak when register device failEPSS 0.2%CVE-2022-49878MEDIUMbpf, verifier: Fix memory leak in array reallocation for stack stateEPSS 0.2%CVE-2022-49746MEDIUMdmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_initEPSS 0.2%