Falhas do tipo CWE-416

5.041 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-2022-28677HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit PDF Reader 11.2.1.53537. User interaEPSS 1.1%CVE-2022-28676HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit PDF Reader 11.2.1.53537. User interaEPSS 1.1%CVE-2021-22662—A use after free issue has been identified in Fatek FvDesigner Version 1.5.76 and prior in the way the application processes project files, EPSS 1.1%CVE-2023-5854HIGHUse after free in Profiles in Google Chrome prior to 119.0.6045.105 allowed a remote attacker who convinced a user to engage in specific UI EPSS 1.1%CVE-2023-28223MEDIUMWindows Domain Name Service Remote Code Execution VulnerabilityEPSS 1.1%CVE-2026-33278CRITICALPossible arbitrary code execution during DNSSEC validationEPSS 1.1%CVE-2019-13721HIGHUse after free in PDFium in Google Chrome prior to 78.0.3904.87 allowed a remote attacker to potentially exploit heap corruption via a craftEPSS 1.1%CVE-2025-26687HIGHWin32k Elevation of Privilege VulnerabilityEPSS 1.1%CVE-2021-33391CRITICALAn issue in HTACG HTML Tidy v5.7.28 allows attacker to execute arbitrary code via the -g option of the CleanNode() function in gdoc.c.EPSS 1.1%CVE-2024-30086HIGHWindows Win32 Kernel Subsystem Elevation of Privilege VulnerabilityEPSS 1.1%CVE-2022-43649HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit PDF Reader 12.0.2.12465. User interaEPSS 1.1%CVE-2024-1284CRITICALUse after free in Mojo in Google Chrome prior to 121.0.6167.160 allowed a remote attacker to potentially exploit heap corruption via a craftEPSS 1.1%CVE-2020-25663—A call to ConformPixelInfo() in the SetImageAlphaChannel() routine of /MagickCore/channel.c caused a subsequent heap-use-after-free or heap-EPSS 1.1%CVE-2024-49115HIGHWindows Remote Desktop Services Remote Code Execution VulnerabilityEPSS 1.1%CVE-2023-30576MEDIUMApache Guacamole: Use-after-free in handling of RDP audio input bufferEPSS 1.1%CVE-2025-63652HIGHA use-after-free in the mk_http_request_end function (mk_server/mk_http.c) of monkey commit f37e984 allows attackers to cause a Denial of SeEPSS 1.1%CVE-2022-0520HIGHUse After Free in radareorg/radare2EPSS 1.1%CVE-2021-3455MEDIUMDisconnecting L2CAP channel right after invalid ATT request leads freezeEPSS 1.1%CVE-2017-14201—The shell DNS command can cause unpredictable results due to misuse of stack variables.EPSS 1.1%CVE-2024-49132HIGHWindows Remote Desktop Services Remote Code Execution VulnerabilityEPSS 1.1%