CWE-761Free of Pointer not at Start of Buffer

PUBLISHEDweakness record
released 2009-05-27 · last modified 2026-04-30

Metadata

CWE ID:
CWE-761
摘要:
Variant
结构:
Simple
状态:
Incomplete
发布日期:
2009-05-27
更新日期:
2026-04-30

名称

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.

This can cause the product to crash, or in some cases, modify critical program variables or execute code. This weakness often occurs when the memory is allocated explicitly on the heap with one of the malloc() family functions and free() is called, but pointer arithmetic has caused the pointer to be in the interior or end of the buffer.

常见后果

范围:
Integrity, Availability, Confidentiality
影响:
Modify Memory, DoS: Crash, Exit, or Restart, Execute Unauthorized Code or Commands

相关 CWE