CVE Vulnerabilities

CVE-2011-1720

Improper Restriction of Operations within the Bounds of a Memory Buffer

Published: May 13, 2011 | Modified: Oct 09, 2018
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
4.3 MODERATE
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V3
Ubuntu

The SMTP server in Postfix before 2.5.13, 2.6.x before 2.6.10, 2.7.x before 2.7.4, and 2.8.x before 2.8.3, when certain Cyrus SASL authentication methods are enabled, does not create a new server handle after client authentication fails, which allows remote attackers to cause a denial of service (heap memory corruption and daemon crash) or possibly execute arbitrary code via an invalid AUTH command with one method followed by an AUTH command with a different method.

Weakness

The software performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.

Affected Software

Name Vendor Start Version End Version
Postfix Postfix 2.0.0 2.0.0
Postfix Postfix 2.0.1 2.0.1
Postfix Postfix 2.0.2 2.0.2
Postfix Postfix 2.0.3 2.0.3
Postfix Postfix 2.0.4 2.0.4
Postfix Postfix 2.0.5 2.0.5
Postfix Postfix 2.0.6 2.0.6
Postfix Postfix 2.0.7 2.0.7
Postfix Postfix 2.0.8 2.0.8
Postfix Postfix 2.0.9 2.0.9
Postfix Postfix 2.0.10 2.0.10
Postfix Postfix 2.0.11 2.0.11
Postfix Postfix 2.0.12 2.0.12
Postfix Postfix 2.0.13 2.0.13
Postfix Postfix 2.0.14 2.0.14
Postfix Postfix 2.0.15 2.0.15
Postfix Postfix 2.0.16 2.0.16
Postfix Postfix 2.0.17 2.0.17
Postfix Postfix 2.0.18 2.0.18
Postfix Postfix 2.0.19 2.0.19
Postfix Postfix 2.1.0 2.1.0
Postfix Postfix 2.1.1 2.1.1
Postfix Postfix 2.1.2 2.1.2
Postfix Postfix 2.1.3 2.1.3
Postfix Postfix 2.1.4 2.1.4
Postfix Postfix 2.1.5 2.1.5
Postfix Postfix 2.1.6 2.1.6
Postfix Postfix 2.2.0 2.2.0
Postfix Postfix 2.2.1 2.2.1
Postfix Postfix 2.2.2 2.2.2
Postfix Postfix 2.2.3 2.2.3
Postfix Postfix 2.2.4 2.2.4
Postfix Postfix 2.2.5 2.2.5
Postfix Postfix 2.2.6 2.2.6
Postfix Postfix 2.2.7 2.2.7
Postfix Postfix 2.2.8 2.2.8
Postfix Postfix 2.2.9 2.2.9
Postfix Postfix 2.2.10 2.2.10
Postfix Postfix 2.2.11 2.2.11
Postfix Postfix 2.2.12 2.2.12
Postfix Postfix 2.3 2.3
Postfix Postfix 2.3.0 2.3.0
Postfix Postfix 2.3.1 2.3.1
Postfix Postfix 2.3.2 2.3.2
Postfix Postfix 2.3.3 2.3.3
Postfix Postfix 2.3.4 2.3.4
Postfix Postfix 2.3.5 2.3.5
Postfix Postfix 2.3.6 2.3.6
Postfix Postfix 2.3.7 2.3.7
Postfix Postfix 2.3.8 2.3.8
Postfix Postfix 2.3.9 2.3.9
Postfix Postfix 2.3.10 2.3.10
Postfix Postfix 2.3.11 2.3.11
Postfix Postfix 2.3.12 2.3.12
Postfix Postfix 2.3.13 2.3.13
Postfix Postfix 2.3.14 2.3.14
Postfix Postfix 2.3.15 2.3.15
Postfix Postfix 2.3.16 2.3.16
Postfix Postfix 2.3.17 2.3.17
Postfix Postfix 2.3.18 2.3.18
Postfix Postfix 2.3.19 2.3.19
Postfix Postfix 2.4 2.4
Postfix Postfix 2.4.0 2.4.0
Postfix Postfix 2.4.1 2.4.1
Postfix Postfix 2.4.2 2.4.2
Postfix Postfix 2.4.3 2.4.3
Postfix Postfix 2.4.4 2.4.4
Postfix Postfix 2.4.5 2.4.5
Postfix Postfix 2.4.6 2.4.6
Postfix Postfix 2.4.7 2.4.7
Postfix Postfix 2.4.8 2.4.8
Postfix Postfix 2.4.9 2.4.9
Postfix Postfix 2.4.10 2.4.10
Postfix Postfix 2.4.11 2.4.11
Postfix Postfix 2.4.12 2.4.12
Postfix Postfix 2.4.13 2.4.13
Postfix Postfix 2.4.14 2.4.14
Postfix Postfix 2.4.15 2.4.15
Postfix Postfix 2.5.0 2.5.0
Postfix Postfix 2.5.1 2.5.1
Postfix Postfix 2.5.2 2.5.2
Postfix Postfix 2.5.3 2.5.3
Postfix Postfix 2.5.4 2.5.4
Postfix Postfix 2.5.5 2.5.5
Postfix Postfix 2.5.6 2.5.6
Postfix Postfix 2.5.7 2.5.7
Postfix Postfix 2.5.8 2.5.8
Postfix Postfix 2.5.9 2.5.9
Postfix Postfix 2.5.10 2.5.10
Postfix Postfix 2.5.11 2.5.11
Postfix Postfix 2.5.12 2.5.12
Red Hat Enterprise Linux 4 RedHat postfix-2:2.2.10-1.5.el4 *
Red Hat Enterprise Linux 5 RedHat postfix-2:2.3.3-2.3.el5_6 *
Red Hat Enterprise Linux 6 RedHat postfix-2:2.6.6-2.2.el6_1 *
Postfix Ubuntu dapper *
Postfix Ubuntu hardy *
Postfix Ubuntu lucid *
Postfix Ubuntu maverick *
Postfix Ubuntu natty *
Postfix Ubuntu upstream *

Extended Description

Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced. This can cause read or write operations to be performed on memory locations that may be associated with other variables, data structures, or internal program data. As a result, an attacker may be able to execute arbitrary code, alter the intended control flow, read sensitive information, or cause the system to crash.

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

  • For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer.

  • Be wary that a language’s interface to native code may still be subject to overflows, even if the language itself is theoretically safe.

  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

  • Examples include the Safe C String Library (SafeStr) by Messier and Viega [REF-57], and the Strsafe.h library from Microsoft [REF-56]. These libraries provide safer versions of overflow-prone string-handling functions.

  • Run or compile the software using features or extensions that automatically provide a protection mechanism that mitigates or eliminates buffer overflows.

  • For example, certain compilers and extensions provide automatic buffer overflow detection mechanisms that are built into the compiled code. Examples include the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice.

  • Consider adhering to the following rules when allocating and managing an application’s memory:

  • Run or compile the software using features or extensions that randomly arrange the positions of a program’s executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.

  • Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64].

References