Falhas do tipo CWE-416

5.026 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-2025-27491HIGHWindows Hyper-V Remote Code Execution VulnerabilityEPSS 1.5%CVE-2022-37332HIGHA use-after-free vulnerability exists in the JavaScript engine of Foxit Software's PDF Reader, version 12.0.1.12430. A specially-crafted PDFEPSS 1.5%CVE-2022-48434HIGHlibavcodec/pthread_frame.c in FFmpeg before 5.1.2, as used in VLC and other products, leaves stale hwaccel state in worker threads, which alEPSS 1.5%CVE-2023-39434HIGHA use-after-free issue was addressed with improved memory management. This issue is fixed in iOS 17 and iPadOS 17, watchOS 10, macOS Sonoma EPSS 1.5%CVE-2024-26227HIGHWindows DNS Server Remote Code Execution VulnerabilityEPSS 1.5%CVE-2024-26231HIGHWindows DNS Server Remote Code Execution VulnerabilityEPSS 1.5%CVE-2022-26417HIGHRockwell Automation Studio 5000 Logix Designer Use After FreeEPSS 1.5%CVE-2024-21303HIGHSQL Server Native Client OLE DB Provider Remote Code Execution VulnerabilityEPSS 1.5%CVE-2024-2885HIGHUse after free in Dawn in Google Chrome prior to 123.0.6312.86 allowed a remote attacker to potentially exploit heap corruption via a crafteEPSS 1.5%CVE-2024-23807HIGHApache Xerces C++: Use-after-free on external DTD scanEPSS 1.5%CVE-2022-2042HIGHUse After Free in vim/vimEPSS 1.5%CVE-2022-23597HIGHRemote program execution with user interactionEPSS 1.5%CVE-2024-49003HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.5%CVE-2022-1898HIGHUse After Free in vim/vimEPSS 1.5%CVE-2023-38184HIGHWindows Lightweight Directory Access Protocol (LDAP) Remote Code Execution VulnerabilityEPSS 1.5%CVE-2022-1154HIGHUse after free in utf_ptr2char in vim/vimEPSS 1.5%CVE-2021-45059LOWAdobe InDesign JPEG2000 Parsing Use-After-Free Information Disclosure VulnerabilityEPSS 1.5%CVE-2024-11235CRITICALReference counting in php_request_shutdown causes Use-After-FreeEPSS 1.5%CVE-2018-16884MEDIUMA flaw was found in the Linux kernel's NFS41+ subsystem. NFS41+ shares mounted in different network namespaces at the same time can make bc_EPSS 1.5%CVE-2024-49118HIGHMicrosoft Message Queuing (MSMQ) Remote Code Execution VulnerabilityEPSS 1.4%