Falhas do tipo CWE-416

5.021 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-21822HIGHA use-after-free vulnerability exists in the JavaScript engine of Foxit Software’s PDF Reader, version 10.1.3.37598. A specially crafted PDFEPSS 1.8%CVE-2024-2886HIGHUse after free in WebCodecs in Google Chrome prior to 123.0.6312.86 allowed a remote attacker to perform arbitrary read/write via a crafted EPSS 1.8%CVE-2022-22533—Due to improper error handling in SAP NetWeaver Application Server Java - versions KRNL64NUC 7.22, 7.22EXT, 7.49, KRNL64UC, 7.22, 7.22EXT, 7EPSS 1.8%CVE-2021-34324—A vulnerability has been identified in JT2Go (All versions < V13.2), Teamcenter Visualization (All versions < V13.2). The Jt981.dll library EPSS 1.8%CVE-2024-26222HIGHWindows DNS Server Remote Code Execution VulnerabilityEPSS 1.8%CVE-2021-3403—In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code exEPSS 1.8%CVE-2023-44446HIGHGStreamer MXF File Parsing Use-After-Free Remote Code Execution VulnerabilityEPSS 1.7%CVE-2021-3796HIGHUse After Free in vim/vimEPSS 1.7%CVE-2021-3752—A use-after-free flaw was found in the Linux kernel’s Bluetooth subsystem in the way user calls connect to the socket and disconnect simultaEPSS 1.7%CVE-2019-3817HIGHA use-after-free flaw has been discovered in libcomps before version 0.1.10 in the way ObjMRTrees are merged. An attacker, who is able to maEPSS 1.7%CVE-2021-4192MEDIUMUse After Free in vim/vimEPSS 1.7%CVE-2023-40088HIGHIn callback_thread_event of com_android_bluetooth_btservice_AdapterService.cpp, there is a possible memory corruption due to a use after freEPSS 1.7%CVE-2024-30006HIGHMicrosoft WDAC OLE DB provider for SQL Server Remote Code Execution VulnerabilityEPSS 1.7%CVE-2022-0156MEDIUMUse After Free in vim/vimEPSS 1.7%CVE-2026-61929HIGHWindows Kernel Elevation of Privilege VulnerabilityEPSS 1.7%CVE-2026-65788HIGHDesktop Window Manager Elevation of Privilege VulnerabilityEPSS 1.7%CVE-2020-27786—A flaw was found in the Linux kernel’s implementation of MIDI, where an attacker with a local account and the permissions to issue ioctl comEPSS 1.7%CVE-2023-23392CRITICALHTTP Protocol Stack Remote Code Execution VulnerabilityEPSS 1.7%CVE-2025-48769MEDIUMApache NuttX RTOS: fs/vfs/fs_rename: use after freeEPSS 1.7%CVE-2020-7068MEDIUMUse of freed hash key in the phar_parse_zipfile functionEPSS 1.7%