CWE-1335Base

Incorrect Bitwise Shift of Integer

Draft in the CWE catalog · 7 CVEs mapped

7
CVEs mapped
6.9
Median CVSS
What it is

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.

Recent examples
—none
CVE-2026-93925

CVE-2026-93925 - UNKNOWN Severity Vulnerability

Stack-based buffer overflow, Incorrect bitwise shift of integer vulnerability in Apache Thrift C++ THeaderProtocol. This issue affects Apache Thrift: before 0.25.0. Users are recommended to upgrade to version 0.25.0, which fixes the issue.

no explanation yet
0%
epss
7.5cvss
CVE-2026-88357

CVE-2026-88357 - HIGH Severity Vulnerability

nDPI 5.1.0 contains a memory access issue in the DNS dissector and serializer deserialization code. Specially crafted network input can cause byte-buffer addresses at odd offsets to be cast to uint16_t or wider integer pointers and directly dereferenced without alignment checks. This results in undefined behavior and can cause process termination in UBSan-instrumented builds or on strict-alignment architectures, leading to denial of service.

HIGHno explanation yet
1%
epss
6.5cvss
CVE-2026-5072

CVE-2026-5072 - MEDIUM Severity Vulnerability

A bitwise shift vulnerability in Zephyr's PTP subsystem allows a remote attacker to cause undefined behavior and potential system crashes. An attacker sends a crafted PTP_MSG_MANAGEMENT message to set an unvalidated negative log_announce_interval value in the port's data set. When a subsequent PTP_MSG_ANNOUNCE message is processed, port_timer_set_timeout_random computes a timeout as NSEC_PER_SEC >> -log_seconds; if the attacker-supplied value is sufficiently negative (e.g., -127), the shift amount exceeds the 64-bit integer width, triggering undefined behavior in C. This can cause a system crash via a compiler-generated illegal instruction trap on some architectures, or produce an erroneous zero timeout leading to resource starvation loops or other logical errors.

MEDIUMno explanation yet
0%
epss
The record
Technical detail
CWE ID
CWE-1335
Abstraction
Base
Structure
Simple
Status
Draft