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-2021-44541A vulnerability was found in Privoxy which was fixed in process_encrypted_request_headers() by freeing header memory when failing to get theEPSS 1.4%CVE-2025-23085MEDIUMA memory leak could occur when a remote peer abruptly closes the socket without sending a GOAWAY notification. Additionally, if an invalid hEPSS 1.4%CVE-2019-6129MEDIUMpng_create_info_struct in png.c in libpng 1.6.36 has a memory leak, as demonstrated by pngcp. NOTE: a third party has stated "I don't think EPSS 1.4%CVE-2023-5156HIGHGlibc: dos due to memory leak in getaddrinfo.cEPSS 1.3%CVE-2024-24265HIGHgpac v2.2.1 was discovered to contain a memory leak via the dst_props variable in the gf_filter_pid_merge_properties_internal function.EPSS 1.3%CVE-2023-28366HIGHThe broker in Eclipse Mosquitto 1.3.2 through 2.x before 2.0.16 has a memory leak that can be abused remotely when a client sends many QoS 2EPSS 1.3%CVE-2021-44540A vulnerability was found in Privoxy which was fixed in get_url_spec_param() by freeing memory of compiled pattern spec before bailing.EPSS 1.3%CVE-2023-2618MEDIUMOpenCV wechat_qrcode Module decoded_bit_stream_parser.cpp decodeHanziSegment memory leakEPSS 1.3%CVE-2021-1353MEDIUMCisco StarOS IPv4 Denial of Service VulnerabilityEPSS 1.3%CVE-2022-4743HIGHA potential memory leak issue was discovered in SDL2 in GLES_CreateTexture() function in SDL_render_gles.c. The vulnerability allows an attaEPSS 1.3%CVE-2025-29828HIGHWindows Schannel Remote Code Execution VulnerabilityEPSS 1.3%CVE-2023-26083LOWMemory leak vulnerability in Mali GPU Kernel Driver in Midgard GPU Kernel Driver all versions from r6p0 - r32p0, Bifrost GPU Kernel Driver aEPSS 1.2%KEVCVE-2023-26257HIGHAn issue was discovered in the Connected Vehicle Systems Alliance (COVESA; formerly GENIVI) dlt-daemon through 2.18.8. Dynamic memory is notEPSS 1.2%CVE-2024-41172MEDIUMApache CXF: Unrestricted memory consumption in CXF HTTP clientsEPSS 1.2%CVE-2026-35424HIGHInternet Key Exchange (IKE) Protocol Denial of Service VulnerabilityEPSS 1.2%CVE-2021-44542A memory leak vulnerability was found in Privoxy when handling errors.EPSS 1.2%CVE-2026-69588HIGHWindows TCP/IP Denial of Service VulnerabilityEPSS 1.2%CVE-2026-70065HIGHWindows DHCP Server Denial of Service VulnerabilityEPSS 1.2%CVE-2026-44806MEDIUMWindows Secure Channel Denial of Service VulnerabilityEPSS 1.2%CVE-2021-46854HIGHmod_radius in ProFTPD before 1.3.7c allows memory disclosure to RADIUS servers because it copies blocks of 16 characters.EPSS 1.2%