Skip to content
OpenAdvisories

Weakness (CWE)

CWE-468: Incorrect Pointer Scaling

Base Incomplete

In C and C++, one may often accidentally refer to the wrong memory due to the semantics of when math operations are implicitly scaled.

How to prevent it (3 mitigations)
  1. Architecture and Design

    Use a platform with high-level memory abstractions.

  2. Implementation

    Always use array indexing instead of direct pointer manipulation.

  3. Architecture and Design

    Use technologies for preventing buffer overflows.

Source: MITRE CWE-468

1 result · Clear filters · Feed

  • High 7.1

    GPU DDK - UAF read and/or write to arbitrary physical pages in DevmemIntChangeSparse due to incorrect calculation of the virtual index count

    Software installed and run as a non-privileged user may conduct improper GPU system calls to cause mismanagement of a mapping state maintained for a sparse memory allocation. The product accidentally refers to the wrong memory due to the semantics of how math…