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-50404MEDIUMfbdev: fbcon: release buffer when fbcon_do_set_font() failedEPSS 0.2%CVE-2026-12999MEDIUMInfineon Airoc Wi-Fi driver leaks TX buffers on send failure, leading to permanent pool exhaustionEPSS 0.2%CVE-2022-50420MEDIUMcrypto: hisilicon/hpre - fix resource leak in remove processEPSS 0.2%CVE-2023-53422MEDIUMwifi: iwlwifi: fw: fix memory leak in debugfsEPSS 0.2%CVE-2023-53271MEDIUMubi: Fix unreferenced object reported by kmemleak in ubi_resize_volume()EPSS 0.2%CVE-2023-53375MEDIUMtracing: Free error logs of tracing instancesEPSS 0.2%CVE-2023-53234MEDIUMwatchdog: Fix kmemleak in watchdog_cdev_registerEPSS 0.2%CVE-2022-50395MEDIUMintegrity: Fix memory leakage in keyring allocation error pathEPSS 0.2%CVE-2023-53318MEDIUMrecordmcount: Fix memory leaks in the uwrite functionEPSS 0.2%CVE-2022-50376MEDIUMorangefs: Fix kmemleak in orangefs_{kernel,client}_debug_init()EPSS 0.2%CVE-2022-50348MEDIUMnfsd: Fix a memory leak in an error handling pathEPSS 0.2%CVE-2022-50389MEDIUMtpm: tpm_crb: Add the missed acpi_put_table() to fix memory leakEPSS 0.2%CVE-2022-50352MEDIUMnet: hns: fix possible memory leak in hnae_ae_register()EPSS 0.2%CVE-2023-53224MEDIUMext4: Fix function prototype mismatch for ext4_feat_ktypeEPSS 0.2%CVE-2023-53241MEDIUMnfsd: call op_release, even when op_func returns an errorEPSS 0.2%CVE-2023-53230MEDIUMsmb: client: fix warning in cifs_smb3_do_mount()EPSS 0.2%CVE-2026-0639LOWliteos_a has a missing release of memory vulnerabilityEPSS 0.2%CVE-2022-50416MEDIUMirqchip/wpcm450: Fix memory leak in wpcm450_aic_of_init()EPSS 0.2%CVE-2022-50387MEDIUMnet: hinic: fix the issue of CMDQ memory leaksEPSS 0.2%CVE-2023-53279MEDIUMmisc: vmw_balloon: fix memory leak with using debugfs_lookup()EPSS 0.2%