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-2024-23923HIGHAlpine Halo9 prh_l2_sar_data_ind Use-After-Free Remote Code Execution VulnerabilityEPSS 0.8%CVE-2021-41780HIGHFoxit PDF Reader before 11.1 and PDF Editor before 11.1, and PhantomPDF before 10.1.6, allow attackers to trigger a use-after-free and execuEPSS 0.8%CVE-2023-25012MEDIUMThe Linux kernel through 6.1.9 has a Use-After-Free in bigben_remove in drivers/hid/hid-bigbenff.c via a crafted USB device because the LED EPSS 0.8%CVE-2020-1602HIGHJunos OS and Junos OS Evolved: A vulnerability in JDHCPD allows an attacker to send crafted IPv4 packets may take over the code execution of the JDHCPD process.EPSS 0.8%CVE-2026-26986MEDIUMFreeRDP has heap-use-after-free in rail_window_freeEPSS 0.8%CVE-2026-25954MEDIUMFreeRDP has heap-use-after-free in xf_rail_server_local_move_sizeEPSS 0.8%CVE-2025-43432MEDIUMA use-after-free issue was addressed with improved memory management. This issue is fixed in Safari 26.1, iOS 26.1 and iPadOS 26.1, macOS TaEPSS 0.8%CVE-2026-66798MEDIUMMicrosoft Edge (Chromium-based) Remote Code Execution VulnerabilityEPSS 0.8%CVE-2024-23839HIGHSuricata http: heap use after free with http.request_header and http.response_header keywordsEPSS 0.8%CVE-2023-27352HIGHThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Sonos One Speaker 70.3-35220. AuEPSS 0.8%CVE-2025-21397HIGHMicrosoft Office Remote Code Execution VulnerabilityEPSS 0.8%CVE-2026-43668HIGHA use after free issue was addressed with improved memory management. This issue is fixed in iOS 18.7.9 and iPadOS 18.7.9, iOS 26.5 and iPadEPSS 0.8%CVE-2024-3158HIGHUse after free in Bookmarks in Google Chrome prior to 123.0.6312.105 allowed a remote attacker to potentially exploit heap corruption via a EPSS 0.8%CVE-2024-5157HIGHUse after free in Scheduling in Google Chrome prior to 125.0.6422.76 allowed a remote attacker to execute arbitrary code inside a sandbox viEPSS 0.8%CVE-2022-45409HIGHThe garbage collector could have been aborted in several states and zones and <code>GCRuntime::finishCollection</code> may not have been calEPSS 0.8%CVE-2022-40016HIGHUse After Free (UAF) vulnerability in ireader media-server before commit 3e0f63f1d3553f75c7d4eb32fa7c7a1976a9ff84 in librtmp, allows attackeEPSS 0.8%CVE-2025-21296HIGHBranchCache Remote Code Execution VulnerabilityEPSS 0.8%CVE-2024-5495HIGHUse after free in Dawn in Google Chrome prior to 125.0.6422.141 allowed a remote attacker to potentially exploit heap corruption via a craftEPSS 0.8%CVE-2025-29815HIGHMicrosoft Edge (Chromium-based) Remote Code Execution VulnerabilityEPSS 0.8%CVE-2024-30102HIGHMicrosoft Office Remote Code Execution VulnerabilityEPSS 0.8%