Falhas do tipo CWE-416

5.036 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-37973CRITICALUse after free in Portals in Google Chrome prior to 94.0.4606.61 allowed a remote attacker who had compromised the renderer process to potenEPSS 11.7%KEVCVE-2021-44710HIGHAdobe Acrobat Reader Use-after-free could lead to Arbitrary code executionEPSS 11.6%CVE-2021-45064HIGHAdobe Acrobat Reader DC AcroForm Use-After-Free Remote Code Execution VulnerabilityEPSS 11.5%CVE-2022-24104HIGHAdobe Acrobat Reader DC Annotation Use-After-Free Remote Code Execution VulnerabilityEPSS 11.1%CVE-2020-8881HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit Studio Photo 3.6.6.916. User interacEPSS 11.1%CVE-2025-26670HIGHLightweight Directory Access Protocol (LDAP) Client Remote Code Execution VulnerabilityEPSS 11.1%CVE-2021-30762HIGHA use after free issue was addressed with improved memory management. This issue is fixed in iOS 12.5.4. Processing maliciously crafted web EPSS 11.0%KEVCVE-2021-44704HIGHAdobe Acrobat Reader Use-After-Free could lead to Arbitrary code executionEPSS 10.8%CVE-2022-28269LOWAdobe Acrobat Reader DC Annotation Use-After-Free Information Disclosure VulnerabilityEPSS 10.7%CVE-2020-6572HIGHUse after free in Media in Google Chrome prior to 81.0.4044.92 allowed a remote attacker to execute arbitrary code via a crafted HTML page.EPSS 10.6%KEVCVE-2022-2586MEDIUMIt was discovered that a nft object or expression could reference a nft set on a different nft table, leading to a use-after-free once that EPSS 10.5%KEVCVE-2024-49116HIGHWindows Remote Desktop Services Remote Code Execution VulnerabilityEPSS 10.2%CVE-2017-0263HIGHThe kernel-mode drivers in Microsoft Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8.1, Windows Server 2012 Gold and R2, WindowEPSS 10.0%KEVCVE-2021-21193HIGHUse after free in Blink in Google Chrome prior to 89.0.4389.90 allowed a remote attacker to potentially exploit heap corruption via a crafteEPSS 9.9%KEVCVE-2022-24070Apache Subversion mod_dav_svn is vulnerable to memory corruptionEPSS 9.5%CVE-2019-7317MEDIUMpng_image_free in png.c in libpng 1.6.x before 1.6.37 has a use-after-free because png_image_free_function is called under png_safe_execute.EPSS 9.4%CVE-2021-21206HIGHUse after free in Blink in Google Chrome prior to 89.0.4389.128 allowed a remote attacker to potentially exploit heap corruption via a craftEPSS 9.3%KEVCVE-2021-34486HIGHWindows Event Tracing Elevation of Privilege VulnerabilityEPSS 9.3%KEVCVE-2024-1670HIGHUse after free in Mojo in Google Chrome prior to 122.0.6261.57 allowed a remote attacker to potentially exploit heap corruption via a crafteEPSS 9.1%CVE-2023-5178HIGHKernel: use after free in nvmet_tcp_free_crypto in nvmeEPSS 9.1%