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

Free of Pointer not at Start of Buffer

The product calls free() on a pointer to a memory resource that was allocated on the heap, but the pointer is not at the start of the buffer.

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

2CVEs of this type in the archive
0critical (CVSS ≥ 9)
0high severity (7–8.9)
Nov 25, 2026latest published

What it is

The product calls free() on a pointer to a memory resource that was allocated on the heap, but the pointer is not at the start of the buffer.

Impact on systems

ScopeImpact
Integrity, Availability, Confidentiality Modify Memory, DoS: Crash, Exit, or Restart, Execute Unauthorized Code or Commands
This can cause the product to crash, or in some cases, modify critical program variables or execute code.

How to prevent it

Implementation When utilizing pointer arithmetic to traverse a buffer, use a separate variable to track progress through memory and preserve the originally allocated address for later freeing.
Implementation When programming in C++, consider using smart pointers provided by the boost library to help correctly and consistently manage memory.
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-761 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20241
20261

All CWE-761 CVEs

2 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.