CWE-761: Free of Pointer not at Start of Buffer

low-risk

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.

Abstraction: Variant

Common Consequences

Integrity Modify Memory

Detection Methods

Dynamic Analysis with Automated Results Interpretation

Use a tool that dynamically detects memory management problems, such as valgrind.

Automated Dynamic Analysis

Use tools that are integrated during compilation to insert runtime error-checking mechanisms related to memory safety errors, such as AddressSanitizer (ASan) for C/C++ [REF-1518].

Real-World Examples (2)

CVE CVSS EPSS KEV
CVE-2025-47749 7.8 0.1%
CVE-2024-31413 5.9 0.1%
0
/ 100
low-risk
Active Threat 0/50 · Minimal
Exploit Availability 0/50 · Minimal