CyberSecBulletin

Compiler Removal of Code to Clear Buffers

CWE-14

Sensitive memory is cleared according to the source code, but compiler optimizations leave the memory untouched when it is not read from again, aka dead store removal.

We track 8 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 7.5.

How this weakness is prevented

  • Implementation: Store the sensitive data in a volatile memory location if available.
  • Build and Compilation: If possible, configure the compiler so that it does not remove dead stores.
  • Architecture and Design: Where possible, encrypt sensitive data that are used by a software system.

Latest Compiler Removal of Code to Clear Buffers vulnerabilities