CWE-469Use of Pointer Subtraction to Determine Size

PUBLISHEDweakness recordMedium
released 2006-07-19 · last modified 2025-12-11

Metadata

CWE ID:
CWE-469
摘要:
Base
结构:
Simple
状态:
Draft
发布日期:
2006-07-19
更新日期:
2025-12-11

名称

Use of Pointer Subtraction to Determine Size

描述

The product subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

常见后果

范围:
Access Control, Integrity, Confidentiality, Availability
影响:
Modify Memory, Read Memory, Execute Unauthorized Code or Commands, Gain Privileges or Assume Identity
注释:
There is the potential for arbitrary code execution with privileges of the vulnerable program.

相关 CWE