CVE Vulnerabilities

CVE-2014-8094

Integer Overflow or Wraparound

Published: Dec 10, 2014 | Modified: Jan 03, 2017
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
6.5 MEDIUM
AV:N/AC:L/Au:S/C:P/I:P/A:P
RedHat/V2
2.3 MODERATE
AV:A/AC:M/Au:S/C:N/I:N/A:P
RedHat/V3
Ubuntu

Integer overflow in the ProcDRI2GetBuffers function in the DRI2 extension in X.Org Server (aka xserver and xorg-server) 1.7.0 through 1.16.x before 1.16.3 allows remote authenticated users to cause a denial of service (crash) or possibly execute arbitrary code via a crafted request, which triggers an out-of-bounds read or write.

Weakness

The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

Affected Software

Name Vendor Start Version End Version
Xorg-server X.org 1.7.0 1.7.0
Xorg-server X.org 1.7.0.901 1.7.0.901
Xorg-server X.org 1.7.0.902 1.7.0.902
Xorg-server X.org 1.7.1 1.7.1
Xorg-server X.org 1.7.1.901 1.7.1.901
Xorg-server X.org 1.7.1.902 1.7.1.902
Xorg-server X.org 1.7.2 1.7.2
Xorg-server X.org 1.7.2.901 1.7.2.901
Xorg-server X.org 1.7.2.902 1.7.2.902
Xorg-server X.org 1.7.3 1.7.3
Xorg-server X.org 1.7.3.901 1.7.3.901
Xorg-server X.org 1.7.3.902 1.7.3.902
Xorg-server X.org 1.7.4 1.7.4
Xorg-server X.org 1.7.4.901 1.7.4.901
Xorg-server X.org 1.7.4.902 1.7.4.902
Xorg-server X.org 1.7.5 1.7.5
Xorg-server X.org 1.7.5.901 1.7.5.901
Xorg-server X.org 1.7.5.902 1.7.5.902
Xorg-server X.org 1.7.6 1.7.6
Xorg-server X.org 1.7.6.901 1.7.6.901
Xorg-server X.org 1.7.6.902 1.7.6.902
Xorg-server X.org 1.7.7 1.7.7
Xorg-server X.org 1.7.99.1 1.7.99.1
Xorg-server X.org 1.7.99.2 1.7.99.2
Xorg-server X.org 1.7.99.901 1.7.99.901
Xorg-server X.org 1.7.99.902 1.7.99.902
Xorg-server X.org 1.8.0 1.8.0
Xorg-server X.org 1.8.0.901 1.8.0.901
Xorg-server X.org 1.8.0.902 1.8.0.902
Xorg-server X.org 1.8.1 1.8.1
Xorg-server X.org 1.8.1.901 1.8.1.901
Xorg-server X.org 1.8.1.902 1.8.1.902
Xorg-server X.org 1.8.2 1.8.2
Xorg-server X.org 1.8.2.901 1.8.2.901
Xorg-server X.org 1.8.2.902 1.8.2.902
Xorg-server X.org 1.8.99.901 1.8.99.901
Xorg-server X.org 1.8.99.902 1.8.99.902
Xorg-server X.org 1.8.99.903 1.8.99.903
Xorg-server X.org 1.8.99.904 1.8.99.904
Xorg-server X.org 1.8.99.905 1.8.99.905
Xorg-server X.org 1.9.0 1.9.0
Xorg-server X.org 1.9.0.901 1.9.0.901
Xorg-server X.org 1.9.0.902 1.9.0.902
Xorg-server X.org 1.9.1 1.9.1
Xorg-server X.org 1.9.2 1.9.2
Xorg-server X.org 1.9.2.901 1.9.2.901
Xorg-server X.org 1.9.2.902 1.9.2.902
Xorg-server X.org 1.9.3 1.9.3
Xorg-server X.org 1.9.3.901 1.9.3.901
Xorg-server X.org 1.9.3.902 1.9.3.902
Xorg-server X.org 1.9.4 1.9.4
Xorg-server X.org 1.9.4.901 1.9.4.901
Xorg-server X.org 1.9.5 1.9.5
Xorg-server X.org 1.9.99.901 1.9.99.901
Xorg-server X.org 1.9.99.902 1.9.99.902
Xorg-server X.org 1.9.99.903 1.9.99.903
Xorg-server X.org 1.10.0 1.10.0
Xorg-server X.org 1.10.0.901 1.10.0.901
Xorg-server X.org 1.10.0.902 1.10.0.902
Xorg-server X.org 1.10.1 1.10.1
Xorg-server X.org 1.10.1.901 1.10.1.901
Xorg-server X.org 1.10.1.902 1.10.1.902
Xorg-server X.org 1.10.2 1.10.2
Xorg-server X.org 1.10.2.901 1.10.2.901
Xorg-server X.org 1.10.2.902 1.10.2.902
Xorg-server X.org 1.10.3 1.10.3
Xorg-server X.org 1.10.3.901 1.10.3.901
Xorg-server X.org 1.10.3.902 1.10.3.902
Xorg-server X.org 1.10.4 1.10.4
Xorg-server X.org 1.10.6 1.10.6
Xorg-server X.org 1.10.99.901 1.10.99.901
Xorg-server X.org 1.10.99.902 1.10.99.902
Xorg-server X.org 1.11.0 1.11.0
Xorg-server X.org 1.11.1 1.11.1
Xorg-server X.org 1.11.1.901 1.11.1.901
Xorg-server X.org 1.11.1.902 1.11.1.902
Xorg-server X.org 1.11.2 1.11.2
Xorg-server X.org 1.11.2.901 1.11.2.901
Xorg-server X.org 1.11.2.902 1.11.2.902
Xorg-server X.org 1.11.3 1.11.3
Xorg-server X.org 1.11.3.901 1.11.3.901
Xorg-server X.org 1.11.3.902 1.11.3.902
Xorg-server X.org 1.11.4 1.11.4
Xorg-server X.org 1.11.99.1 1.11.99.1
Xorg-server X.org 1.11.99.2 1.11.99.2
Xorg-server X.org 1.11.99.901 1.11.99.901
Xorg-server X.org 1.11.99.902 1.11.99.902
Xorg-server X.org 1.11.99.903 1.11.99.903
Xorg-server X.org 1.12.0 1.12.0
Xorg-server X.org 1.12.0.901 1.12.0.901
Xorg-server X.org 1.12.0.902 1.12.0.902
Xorg-server X.org 1.12.1.901 1.12.1.901
Xorg-server X.org 1.12.1.902 1.12.1.902
Xorg-server X.org 1.12.2 1.12.2
Xorg-server X.org 1.12.2.901 1.12.2.901
Xorg-server X.org 1.12.2.902 1.12.2.902
Xorg-server X.org 1.12.3 1.12.3
Xorg-server X.org 1.12.3.901 1.12.3.901
Xorg-server X.org 1.12.3.902 1.12.3.902
Xorg-server X.org 1.12.4 1.12.4
Xorg-server X.org 1.12.99.901 1.12.99.901
Xorg-server X.org 1.12.99.902 1.12.99.902
Xorg-server X.org 1.12.99.903 1.12.99.903
Xorg-server X.org 1.12.99.904 1.12.99.904
Xorg-server X.org 1.12.99.905 1.12.99.905
Xorg-server X.org 1.13.0 1.13.0
Xorg-server X.org 1.13.0.901 1.13.0.901
Xorg-server X.org 1.13.0.902 1.13.0.902
Xorg-server X.org 1.13.1 1.13.1
Xorg-server X.org 1.13.1.901 1.13.1.901
Xorg-server X.org 1.13.2 1.13.2
Xorg-server X.org 1.13.2.901 1.13.2.901
Xorg-server X.org 1.13.2.902 1.13.2.902
Xorg-server X.org 1.13.3 1.13.3
Xorg-server X.org 1.13.4 1.13.4
Xorg-server X.org 1.13.99.901 1.13.99.901
Xorg-server X.org 1.13.99.902 1.13.99.902
Xorg-server X.org 1.14.0 1.14.0
Xorg-server X.org 1.14.1 1.14.1
Xorg-server X.org 1.14.1.901 1.14.1.901
Xorg-server X.org 1.14.1.902 1.14.1.902
Xorg-server X.org 1.14.2 1.14.2
Xorg-server X.org 1.14.2 1.14.2
Xorg-server X.org 1.14.2.901 1.14.2.901
Xorg-server X.org 1.14.2.902 1.14.2.902
Xorg-server X.org 1.14.3 1.14.3
Xorg-server X.org 1.14.3.901 1.14.3.901
Xorg-server X.org 1.14.3.901 1.14.3.901
Xorg-server X.org 1.14.4 1.14.4
Xorg-server X.org 1.14.4.901 1.14.4.901
Xorg-server X.org 1.14.5 1.14.5
Xorg-server X.org 1.14.5.901 1.14.5.901
Xorg-server X.org 1.14.6 1.14.6
Xorg-server X.org 1.14.7 1.14.7
Xorg-server X.org 1.14.99.1 1.14.99.1
Xorg-server X.org 1.14.99.2 1.14.99.2
Xorg-server X.org 1.14.99.3 1.14.99.3
Xorg-server X.org 1.14.99.901 1.14.99.901
Xorg-server X.org 1.14.99.902 1.14.99.902
Xorg-server X.org 1.14.99.903 1.14.99.903
Xorg-server X.org 1.14.99.904 1.14.99.904
Xorg-server X.org 1.14.99.905 1.14.99.905
Xorg-server X.org 1.15.0 1.15.0
Xorg-server X.org 1.15.0.901 1.15.0.901
Xorg-server X.org 1.15.1 1.15.1
Xorg-server X.org 1.15.2 1.15.2
Xorg-server X.org 1.15.99.901 1.15.99.901
Xorg-server X.org 1.15.99.902 1.15.99.902
Xorg-server X.org 1.15.99.903 1.15.99.903
Xorg-server X.org 1.15.99.904 1.15.99.904
Xorg-server X.org 1.16.0 1.16.0
Xorg-server X.org 1.16.0.901 1.16.0.901
Xorg-server X.org 1.16.1 1.16.1
Xorg-server X.org 1.16.1.901 1.16.1.901
Xorg-server X.org 1.16.2 1.16.2
Xorg-server X.org 1.16.2.99.901 1.16.2.99.901
Xorg-server X.org 1.16.2.901 1.16.2.901
Red Hat Enterprise Linux 6 RedHat xorg-x11-server-0:1.15.0-25.el6_6 *
Red Hat Enterprise Linux 7 RedHat xorg-x11-server-0:1.15.0-7.el7_0.3 *
Xorg-server Ubuntu devel *
Xorg-server Ubuntu lucid *
Xorg-server Ubuntu precise *
Xorg-server Ubuntu trusty *
Xorg-server Ubuntu trusty/esm *
Xorg-server Ubuntu upstream *
Xorg-server Ubuntu utopic *
Xorg-server-lts-trusty Ubuntu precise *

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • If possible, choose a language or compiler that performs automatic bounds checking.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • Use libraries or frameworks that make it easier to handle numbers without unexpected consequences.
  • Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++). [REF-106]
  • Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range.
  • Use unsigned integers where possible. This makes it easier to perform validation for integer overflows. When signed integers are required, ensure that the range check includes minimum values as well as maximum values.
  • Understand the programming language’s underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, “not-a-number” calculations, and how the language handles numbers that are too large or too small for its underlying representation. [REF-7]
  • Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.

References