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-2022-0443HIGHUse After Free in vim/vimEPSS 1.4%CVE-2023-35300HIGHRemote Procedure Call Runtime Remote Code Execution VulnerabilityEPSS 1.4%CVE-2020-1900—When unserializing an object with dynamic properties HHVM needs to pre-reserve the full size of the dynamic property array before inserting EPSS 1.4%CVE-2023-34241MEDIUMCUPS vulnerable to use-after-free in cupsdAcceptClient()EPSS 1.4%CVE-2021-37179—A vulnerability has been identified in Solid Edge SE2021 (All Versions < SE2021MP7). The PSKERNEL.dll library in affected application lacks EPSS 1.4%CVE-2017-16732—A use-after-free issue was discovered in Advantech WebAccess versions prior to 8.3. WebAccess allows an unauthenticated attacker to specify EPSS 1.4%CVE-2024-49016HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2023-32172MEDIUMUnified Automation UaGateway OPC UA Server Use-After-Free Denial-of-Service VulnerabilityEPSS 1.4%CVE-2023-2598HIGHA flaw was found in the fixed buffer registration code for io_uring (io_sqe_buffer_register in io_uring/rsrc.c) in the Linux kernel that allEPSS 1.4%CVE-2021-3347HIGHAn issue was discovered in the Linux kernel through 5.10.11. PI futexes have a kernel stack use-after-free during fault handling, allowing lEPSS 1.4%CVE-2019-11940—In the course of decompressing HPACK inside the HTTP2 protocol, an unexpected sequence of header table resize operations can place the headeEPSS 1.4%CVE-2022-46342HIGHA vulnerability was found in X.Org. This security flaw occurs because the handler for the XvdiSelectVideoNotify request may write to memory EPSS 1.4%CVE-2021-3974HIGHUse After Free in vim/vimEPSS 1.4%CVE-2021-39228MEDIUMMemory Safety Issue when using patch or merge on state and assign the result back to stateEPSS 1.3%CVE-2025-24983HIGHWindows Win32 Kernel Subsystem Elevation of Privilege VulnerabilityEPSS 1.3%KEVCVE-2023-29824CRITICALA use-after-free issue was discovered in Py_FindObjects() function in SciPy versions prior to 1.8.0. NOTE: the vendor and discoverer indicatEPSS 1.3%CVE-2011-0671HIGHUse-after-free vulnerability in win32k.sys in the kernel-mode drivers in Microsoft Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows EPSS 1.3%CVE-2021-40399HIGHAn exploitable use-after-free vulnerability exists in WPS Spreadsheets ( ET ) as part of WPS Office, version 11.2.0.10351. A specially-craftEPSS 1.3%CVE-2022-2289HIGHUse After Free in vim/vimEPSS 1.3%CVE-2020-28594HIGHA use-after-free vulnerability exists in the _3MF_Importer::_handle_end_model() functionality of Prusa Research PrusaSlicer 2.2.0 and MasterEPSS 1.3%