VariantIncomplete

CWE-588Attempt to Access Child of a Non-structure Pointer

Category: memory

Description

Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption.

Common consequences· 2

  • Integrity — Modify Memory
    Adjacent variables in memory may be corrupted by assignments performed on fields after the cast.
  • Availability — DoS: Crash, Exit, or Restart
    Execution may end due to a memory access error.

Potential mitigations· 2

  • [Requirements]The choice could be made to use a language that is not susceptible to these issues.
  • [Implementation]Review of type casting operations can identify locations where incompatible types are cast.

References

  1. https://cwe.mitre.org/data/definitions/588.html

(incoming)1

TypeTargetConfidenceTier
VulnerabilityCVE-2026-21692cve-2026-216920%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Access of Resource Using Incompatible Type ('Type Confusion')
CWE
Data Element containing Pointer Item without Proper Copy Control Element
CWE
Untrusted Pointer Dereference
CWE
Incorrect Pointer Scaling
CWE
Function Call With Incorrect Argument Type
CWE
NULL Pointer Dereference
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.