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-25057LOWthird_party_NuttX has a memory leak vulnerabilityEPSS 0.1%CVE-2022-50400MEDIUMstaging: greybus: audio_helper: remove unused and wrong debugfs usageEPSS 0.1%CVE-2023-53330MEDIUMcaif: fix memory leak in cfctrl_linkup_request()EPSS 0.1%CVE-2023-53406MEDIUMUSB: gadget: pxa25x_udc: 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-53418MEDIUMUSB: gadget: lpc32xx_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53412MEDIUMUSB: gadget: bcm63xx_udc: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2025-39890MEDIUMwifi: ath12k: fix memory leak in ath12k_service_ready_ext_eventEPSS 0.1%CVE-2023-53255MEDIUMfirmware: stratix10-svc: Fix a potential resource leak in svc_create_memory_pool()EPSS 0.1%CVE-2023-53249MEDIUMclk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probeEPSS 0.1%CVE-2023-53379MEDIUMusb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()EPSS 0.1%CVE-2023-53424MEDIUMclk: mediatek: fix of_iomap memory leakEPSS 0.1%CVE-2023-53298MEDIUMnfc: fix memory leak of se_io context in nfc_genl_se_ioEPSS 0.1%CVE-2023-53441MEDIUMbpf: cpumap: Fix memory leak in cpu_map_update_elemEPSS 0.1%CVE-2023-53417MEDIUMUSB: sl811: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53435MEDIUMcassini: Fix a memory leak in the error handling path of cas_init_one()EPSS 0.1%CVE-2023-53423MEDIUMobjtool: Fix memory leak in create_static_call_sections()EPSS 0.1%CVE-2023-53288MEDIUMdrm/client: Fix memory leak in drm_client_modeset_probeEPSS 0.1%CVE-2023-53416MEDIUMUSB: isp1362: fix memory leak with using debugfs_lookup()EPSS 0.1%CVE-2023-53414MEDIUMscsi: snic: Fix memory leak with using debugfs_lookup()EPSS 0.1%