CWE•Base•Draft•3 recent CVEs
CWE-1335Incorrect Bitwise Shift of Integer
Description
An integer value is specified to be shifted by a negative amount or an amount greater than or equal to the number of bits contained in the value causing an unexpected or indeterminate result.
[object Object]
Common consequences
- Integrity→DoS: Crash, Exit, or Restart
Potential mitigations
- ImplementationImplicitly or explicitly add checks and mitigation for negative or over-shift values.