CWE-466

Return of Pointer Value Outside of Expected Range
AI Translation Available

A function can return a pointer to memory that is outside of the buffer that the pointer is expected to reference.

Status
draft
Abstraction
base
C C++ Memory-Unsafe

Common Consequences

confidentiality integrity
Impacts
read memory modify memory

Detection Methods

automated static analysis automated dynamic analysis

Potential Mitigations

Functional Areas

memory management