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-49867MEDIUMnet: wwan: iosm: fix memory leak in ipc_wwan_dellinkEPSS 0.2%CVE-2022-49741MEDIUMfbdev: smscufx: fix error handling code in ufx_usb_probeEPSS 0.2%CVE-2023-53359MEDIUMUSB: fix memory leak with using debugfs_lookup()EPSS 0.2%CVE-2024-53084MEDIUMdrm/imagination: Break an object reference loopEPSS 0.2%CVE-2025-21661HIGHgpio: virtuser: fix missing lookup table cleanupsEPSS 0.2%CVE-2024-56712LOWudmabuf: fix memory leak on last export_udmabuf() error pathEPSS 0.2%CVE-2024-53087MEDIUMdrm/xe: Fix possible exec queue leak in exec IOCTLEPSS 0.2%CVE-2024-53077MEDIUMrpcrdma: Always release the rpcrdma_device's xa_arrayEPSS 0.2%CVE-2026-61866LOWImageMagick before 7.1.2-26 Memory Leak in JNG encoderEPSS 0.2%CVE-2023-53355MEDIUMstaging: pi433: fix memory leak with using debugfs_lookup()EPSS 0.2%CVE-2026-61863LOWImageMagick before 7.1.2-26 Memory Leak in TIFF EncoderEPSS 0.2%CVE-2025-22000MEDIUMmm/huge_memory: drop beyond-EOF folios with the right number of refsEPSS 0.2%CVE-2024-56553LOWbinder: fix memleak of proc->delivered_freezeEPSS 0.2%CVE-2026-21674LOWiccDEV has a Memory Leak in its CIccProfileXml::ParseTag() Error PathEPSS 0.2%CVE-2021-47671LOWcan: etas_es58x: es58x_rx_err_msg(): fix memory leak in error pathEPSS 0.2%CVE-2022-49922MEDIUMnfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send()EPSS 0.2%CVE-2026-40336LOWlibgphoto2 has memory leak in ptp_unpack_Sony_DPD() secondary enumeration list in ptp-pack.cEPSS 0.2%CVE-2022-49926MEDIUMnet: dsa: Fix possible memory leaks in dsa_loop_init()EPSS 0.2%CVE-2024-50197MEDIUMpinctrl: intel: platform: fix error path in device_for_each_child_node()EPSS 0.2%CVE-2022-50372MEDIUMcifs: Fix memory leak when build ntlmssp negotiate blob failedEPSS 0.2%