Falhas do tipo CWE-416

5.043 resultados

Uso após liberação de memória

Ocorre quando o código tenta acessar (ler ou escrever) um bloco de memória que já foi liberado (free, delete). O programa mantém um ponteiro para a memória, mas o sistema operacional pode reatribuir essa região para outro uso, causando corrupção de dados, travamento ou execução de código arbitrário.

Exemplo

Um servidor web aloca memória para armazenar dados de sessão do usuário, depois libera essa memória quando a sessão encerra. Se uma thread continuar tentando acessar essa sessão após a liberação, pode ler dados de outra sessão ou sobrescrever dados críticos de outro processo.

Como mitigar

Sempre anule ponteiros após liberar memória (ptr = NULL), use variáveis de controle para rastrear estado de alocação, implemente gerenciamento automático de memória quando possível (smart pointers em C++), e execute testes com sanitizers (AddressSanitizer, Valgrind) durante desenvolvimento e CI/CD.

CVE-2021-33640MEDIUMAfter tar_close(), libtar.c releases the memory pointed to by pointer t. After tar_close() is called in the list() function, it continues toEPSS 0.7%CVE-2025-31115HIGHXZ has a heap-use-after-free bug in threaded .xz decoderEPSS 0.7%CVE-2023-35313HIGHWindows Online Certificate Status Protocol (OCSP) SnapIn Remote Code Execution VulnerabilityEPSS 0.7%CVE-2023-6706HIGHUse after free in FedCM in Google Chrome prior to 120.0.6099.109 allowed a remote attacker who convinced a user to engage in specific UI intEPSS 0.7%CVE-2025-30386HIGHMicrosoft Office Remote Code Execution VulnerabilityEPSS 0.7%CVE-2023-35323HIGHWindows OLE Remote Code Execution VulnerabilityEPSS 0.7%CVE-2023-6703HIGHUse after free in Blink in Google Chrome prior to 120.0.6099.109 allowed a remote attacker to potentially exploit heap corruption via a crafEPSS 0.7%CVE-2023-44430HIGHBentley View SKP File Parsing Use-After-Free Remote Code Execution VulnerabilityEPSS 0.7%CVE-2022-38983CRITICALThe BT Hfp Client module has a Use-After-Free (UAF) vulnerability.Successful exploitation of this vulnerability may result in arbitrary codeEPSS 0.6%CVE-2025-21796CRITICALnfsd: clear acl_access/acl_default after releasing themEPSS 0.6%CVE-2025-21367HIGHWindows Win32 Kernel Subsystem Elevation of Privilege VulnerabilityEPSS 0.6%CVE-2026-35554HIGHApache Kafka Clients: Kafka Producer Message Corruption and Misrouting via Buffer Pool Race ConditionEPSS 0.6%CVE-2025-47170HIGHMicrosoft Word Remote Code Execution VulnerabilityEPSS 0.6%CVE-2025-21315HIGHMicrosoft Brokering File System Elevation of Privilege VulnerabilityEPSS 0.6%CVE-2024-25767MEDIUMnanomq 0.21.2 contains a Use-After-Free vulnerability in /nanomq/nng/src/core/socket.c.EPSS 0.6%CVE-2024-39305MEDIUMEnvoy Proxy use after free when route hash policy is configured with cookie attributesEPSS 0.6%CVE-2024-35869CRITICALsmb: client: guarantee refcounted children from parent sessionEPSS 0.6%CVE-2024-49074HIGHWindows Kernel-Mode Driver Elevation of Privilege VulnerabilityEPSS 0.6%CVE-2025-30377HIGHMicrosoft Office Remote Code Execution VulnerabilityEPSS 0.6%CVE-2024-22253CRITICALUse-after-free vulnerabilityEPSS 0.6%