Back to CWE list
CWE-468
Incorrect Pointer Scaling
Base
Incomplete
Description
In C and C++, one may often accidentally refer to the wrong memory due to the semantics of when math operations are implicitly scaled.
Parent Weaknesses (ChildOf)
Common Consequences
Scope
Confidentiality
Integrity
Impact
Read Memory, Modify Memory
Potential Mitigations
Architecture and Design
Use a platform with high-level memory abstractions.
Implementation
Always use array indexing instead of direct pointer manipulation.
Architecture and Design
Use technologies for preventing buffer overflows.
Applicable Platforms
C
C++
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now