CVE Vulnerabilities

CVE-2011-3026

Integer Overflow or Wraparound

Published: Feb 16, 2012 | Modified: Apr 16, 2020
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
6.8 IMPORTANT
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V3
Ubuntu
MEDIUM

Integer overflow in libpng, as used in Google Chrome before 17.0.963.56, allows remote attackers to cause a denial of service or possibly have unspecified other impact via unknown vectors that trigger an integer truncation.

Weakness

The product 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
Chrome Google * 17.0.963.56 (excluding)
Red Hat Enterprise Linux 4 RedHat seamonkey-0:1.0.9-79.el4 *
Red Hat Enterprise Linux 4 RedHat firefox-0:3.6.26-3.el4 *
Red Hat Enterprise Linux 4 RedHat libpng-2:1.2.7-9.el4 *
Red Hat Enterprise Linux 4 RedHat libpng10-0:1.0.16-10.el4 *
Red Hat Enterprise Linux 5 RedHat xulrunner-0:1.9.2.26-2.el5_7 *
Red Hat Enterprise Linux 5 RedHat libpng-2:1.2.10-15.el5_7 *
Red Hat Enterprise Linux 6 RedHat thunderbird-0:3.1.18-2.el6_2 *
Red Hat Enterprise Linux 6 RedHat xulrunner-0:1.9.2.26-2.el6_2 *
Red Hat Enterprise Linux 6 RedHat libpng-2:1.2.46-2.el6_2 *
Chromium-browser Ubuntu upstream *
Firefox Ubuntu devel *
Firefox Ubuntu hardy *
Firefox Ubuntu lucid *
Firefox Ubuntu maverick *
Firefox Ubuntu natty *
Firefox Ubuntu oneiric *
Firefox Ubuntu upstream *
Libpng Ubuntu devel *
Libpng Ubuntu hardy *
Libpng Ubuntu lucid *
Libpng Ubuntu maverick *
Libpng Ubuntu natty *
Libpng Ubuntu oneiric *
Libpng Ubuntu upstream *
Thunderbird Ubuntu devel *
Thunderbird Ubuntu hardy *
Thunderbird Ubuntu lucid *
Thunderbird Ubuntu maverick *
Thunderbird Ubuntu natty *
Thunderbird Ubuntu oneiric *
Thunderbird Ubuntu upstream *
Xulrunner-1.9.2 Ubuntu hardy *
Xulrunner-1.9.2 Ubuntu lucid *
Xulrunner-1.9.2 Ubuntu maverick *
Xulrunner-1.9.2 Ubuntu natty *

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