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-53330MEDIUMcaif: fix memory leak in cfctrl_linkup_request()EPSS 0.1%CVE-2023-53404MEDIUMUSB: fotg210: 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-53405MEDIUMUSB: gadget: gr_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53408MEDIUMtrace/blktrace: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53415MEDIUMUSB: dwc3: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53424MEDIUMclk: mediatek: fix of_iomap memory leakEPSS 0.1%CVE-2023-53288MEDIUMdrm/client: Fix memory leak in drm_client_modeset_probeEPSS 0.1%CVE-2023-53413MEDIUMUSB: isp116x: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53441MEDIUMbpf: cpumap: Fix memory leak in cpu_map_update_elemEPSS 0.1%CVE-2023-53435MEDIUMcassini: Fix a memory leak in the error handling path of cas_init_one()EPSS 0.1%CVE-2023-53255MEDIUMfirmware: stratix10-svc: Fix a potential resource leak in svc_create_memory_pool()EPSS 0.1%CVE-2023-53298MEDIUMnfc: fix memory leak of se_io context in nfc_genl_se_ioEPSS 0.1%CVE-2023-53379MEDIUMusb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()EPSS 0.1%CVE-2025-39852MEDIUMnet/tcp: Fix socket memory leak in TCP-AO failure handling for IPv6EPSS 0.1%CVE-2023-53410MEDIUMUSB: ULPI: fix memory leak with using debugfs_lookup()EPSS 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-53439MEDIUMnet: skb_partial_csum_set() fix against transport header magic valueEPSS 0.1%CVE-2024-43696LOWLiteos_a has an Memory Leak vulnerabilityEPSS 0.1%