Weaknesses of type CWE-416

5,043 results

Uso após liberação de memória

Ocorre quando o código tenta acessar um bloco de memória que já foi desalocado (free/delete). O ponteiro continua apontando para aquele endereço, mas o dado ali pode ter sido sobrescrito por outra operação, causando comportamento impredizível, corrupção de dados ou execução de código arbitrário.

Example

Um buffer é alocado, depois liberado com free(). Mais adiante, o código ainda tenta ler ou escrever naquele mesmo ponteiro sem verificar. Se um atacante controlar a alocação subsequente daquele endereço, consegue manipular o conteúdo que será lido.

How to mitigate

Anule o ponteiro imediatamente após liberar (ptr = NULL), implemente análise estática para detectar acessos pós-liberação, use ferramentas como valgrind ou AddressSanitizer nos testes, e considere linguagens com gerenciamento automático de memória para código sensível.

CVE-2013-1340HIGHwin32k.sys in the kernel-mode drivers in Microsoft Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SEPSS 1.5%CVE-2021-29096HIGHArcGIS general raster security update: use-after-freeEPSS 1.5%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-2026-23479HIGHredis-server use-after-free in unblock client flow may allow remote code executionEPSS 1.5%CVE-2024-26231HIGHWindows DNS Server Remote Code Execution VulnerabilityEPSS 1.5%CVE-2024-26227HIGHWindows 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%