1. CVE archive
  2. Vulnerability types
  3. CWE-762
CWE-762 · #459 most frequent type in the archive

Mismatched Memory Management Routines

The product attempts to return a memory resource to the system, but it calls a release function that is not compatible with the function that was originally used to allocate that resource.

Part of: CWE-763 · Release of Invalid Pointer or Reference

8CVEs of this type in the archive
2critical (CVSS ≥ 9)
5high severity (7–8.9)
Oct 14, 2026latest published

What it is

The product attempts to return a memory resource to the system, but it calls a release function that is not compatible with the function that was originally used to allocate that resource.

Impact on systems

ScopeImpact
Integrity, Availability, Confidentiality Modify Memory, DoS: Crash, Exit, or Restart, Execute Unauthorized Code or Commands
When the memory management functions are mismatched, the consequences may be as severe as code execution, memory corruption, or program crash. Consequences and ease of exploit will vary depending on the implementation of the routines and the object being managed.

How to prevent it

Implementation Only call matching memory management functions. Do not mix and match routines. For example, when you allocate a buffer with malloc(), dispose of the original pointer with free().
Implementation · Libraries or Frameworks Choose a language or tool that provides automatic memory management, or makes manual memory management less error-prone. For example, glibc in Linux provides protection against free of invalid pointers. When using Xcode to target OS X or iOS, enable automatic reference counting (ARC). To help correctly and consistently manage memory when programming in C++, consider using a smart pointer class such as std
Architecture and Design · Libraries or Frameworks Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, glibc in Linux provides protection against free of invalid pointers.
Architecture and Design Use a language that provides abstractions for memory allocation and deallocation.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-762 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20232
20254
20262

All CWE-762 CVEs

8 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.