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-2022-49866MEDIUMnet: wwan: mhi: fix memory leak in mhi_mbim_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-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-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-2026-61863LOWImageMagick before 7.1.2-26 Memory Leak in TIFF EncoderEPSS 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-2024-56553LOWbinder: fix memleak of proc->delivered_freezeEPSS 0.2%CVE-2025-22000MEDIUMmm/huge_memory: drop beyond-EOF folios with the right number of refsEPSS 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-2022-49924MEDIUMnfc: fdp: Fix potential memory leak in fdp_nci_send()EPSS 0.2%CVE-2022-49923MEDIUMnfc: nxp-nci: Fix potential memory leak in nxp_nci_send()EPSS 0.2%