CWE-789Memory Allocation with Excessive Size Value

PUBLISHEDweakness record
released 2009-10-29 · last modified 2026-04-30

Metadata

CWE ID:
CWE-789
摘要:
Variant
结构:
Simple
状态:
Draft
发布日期:
2009-10-29
更新日期:
2026-04-30

名称

Memory Allocation with Excessive Size Value

描述

The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.

常见后果

范围:
Availability
影响:
DoS: Resource Consumption (Memory)
注释:
Not controlling memory allocation can result in a request for too much system memory, possibly leading to a crash of the application due to out-of-memory conditions, or the consumption of a large amount of memory on the system.

相关 CWE