Modes d'introduction
Implementation : Adding shifts without properly verifying the size and sign of the shift amount.
Plateformes applicables
Langue
Name: C (Undetermined)
Name: C++ (Undetermined)
Name: C# (Undetermined)
Name: Java (Undetermined)
Name: JavaScript (Undetermined)
Systèmes d’exploitation
Class: Not OS-Specific (Undetermined)
Technologies
Class: Not Technology-Specific (Undetermined)
Conséquences courantes
Portée |
Impact |
Probabilité |
Integrity | DoS: Crash, Exit, or Restart | |
Exemples observés
Références |
Description |
| An unexpected large value in the ext4 filesystem causes an overshift condition resulting in a divide by zero. |
| An unexpected large value in the ext4 filesystem causes an overshift condition resulting in a divide by zero - fix of CVE-2009-4307. |
| An overshift in a kernel allowed out of bounds reads and writes resulting in a root takeover. |
| Program is not properly handling signed bitwise left-shifts causing an overlapping memcpy memory range error. |
| Compression function improperly executes a signed left shift of a negative integer. |
| Some kernels improperly handle right shifts of 32 bit numbers in a 64 bit register. |
| Putty has an incorrectly sized shift value resulting in an overshift. |
| LED driver overshifts under certain conditions resulting in a DoS. |
Mesures d’atténuation potentielles
Phases : Implementation
Implicitly or explicitly add checks and mitigation for negative or over-shift values.
Notes de cartographie des vulnérabilités
Justification : This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Commentaire : Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Soumission
Nom |
Organisation |
Date |
Date de publication |
Version |
CWE Content Team |
MITRE |
2021-03-29 +00:00 |
2021-07-20 +00:00 |
4.5 |
Modifications
Nom |
Organisation |
Date |
Commentaire |
CWE Content Team |
MITRE |
2022-10-13 +00:00 |
updated Demonstrative_Examples, Observed_Examples |
CWE Content Team |
MITRE |
2023-04-27 +00:00 |
updated Relationships |
CWE Content Team |
MITRE |
2023-06-29 +00:00 |
updated Mapping_Notes |