1. CVE archive
  2. 2016
  3. CVE-2016-9842

CVE-2016-9842

8.8 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 8.8 – High

Description

The inflateMark function in inflate.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact via vectors involving left shifts of negative integers.

Affected products

VendorProductVersionPlatform
apple iphone os < 11 –
apple mac os x >= 10.0.0 < 10.13.0 –
apple tvos < 11.0 –
apple watchos < 4 –
canonical ubuntu linux 16.04 –
canonical ubuntu linux 18.04 –
debian debian linux 8.0 –
nodejs node.js >= 4.0.0 <= 4.1.2 –
nodejs node.js >= 4.2.0 < 4.8.2 –
nodejs node.js >= 6.0.0 <= 6.8.1 –
nodejs node.js >= 6.9.0 < 6.10.2 –
nodejs node.js >= 7.0.0 < 7.6.0 –
opensuse leap 42.1 –
opensuse leap 42.2 –
opensuse opensuse 13.2 –
oracle database server 18c –
oracle jdk 1.6.0 update161 –
oracle jdk 1.7.0 update151 –
oracle jdk 1.8.0 update144 –
oracle jre 1.6.0 update161 –
oracle jre 1.7.0 update151 –
oracle jre 1.8.0 update144 –
oracle mysql >= 5.5.0 <= 5.5.61 –
oracle mysql >= 5.6.0 <= 5.6.41 –
oracle mysql >= 5.7.0 <= 5.7.23 –
oracle mysql >= 8.0.0 <= 8.0.12 –
redhat enterprise linux desktop 6.0 –
redhat enterprise linux desktop 7.0 –
redhat enterprise linux eus 7.4 –
redhat enterprise linux eus 7.5 –
redhat enterprise linux server 6.0 –
redhat enterprise linux server 7.0 –
redhat enterprise linux workstation 6.0 –
redhat enterprise linux workstation 7.0 –
redhat satellite 5.8 –
zlib zlib >= 1.2.3.4 < 1.2.9 –
All 15 Zlib vulnerabilities

Vulnerability type

CWE-1335 Incorrect Bitwise Shift of Integer

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.

Specifying a value to be shifted by a negative amount is undefined in various languages. Various computer architectures implement this action in different ways. The compilers and interpreters when generating code to accomplish a shift generally do not do a check for this issue. Specifying an over-shift - a shift greater than or equal to the number of bits contained in a value to be shifted - produces a result that varies by architecture and compiler. In some languages, this action is undefined.

Impact on systems

ScopeImpact
Integrity DoS: Crash, Exit, or Restart
Other Undefined Behavior, Unexpected State, Alter Execution Logic

How to prevent it

Implementation Implicitly or explicitly add checks and mitigation for negative or over-shift values.

All 5 CWE-1335 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org