CVE Vulnerabilities

CVE-2014-3157

Improper Restriction of Operations within the Bounds of a Memory Buffer

Published: Jun 11, 2014 | Modified: Dec 29, 2017
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu

Heap-based buffer overflow in the FFmpegVideoDecoder::GetVideoBuffer function in media/filters/ffmpeg_video_decoder.cc in Google Chrome before 35.0.1916.153 allows remote attackers to cause a denial of service or possibly have unspecified other impact by leveraging VideoFrame data structures that are too small for proper interaction with an underlying FFmpeg library.

Weakness

The product 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
Chrome Google 35.0.1916.114 35.0.1916.114
Chrome Google 35.0.1916.99 35.0.1916.99
Chrome Google 35.0.1916.57 35.0.1916.57
Chrome Google 35.0.1916.122 35.0.1916.122
Chrome Google 35.0.1916.3 35.0.1916.3
Chrome Google 35.0.1916.38 35.0.1916.38
Chrome Google 35.0.1916.105 35.0.1916.105
Chrome Google 35.0.1916.128 35.0.1916.128
Chrome Google 35.0.1916.95 35.0.1916.95
Chrome Google 35.0.1916.52 35.0.1916.52
Chrome Google 35.0.1916.82 35.0.1916.82
Chrome Google 35.0.1916.42 35.0.1916.42
Chrome Google 35.0.1916.36 35.0.1916.36
Chrome Google 35.0.1916.111 35.0.1916.111
Chrome Google 35.0.1916.124 35.0.1916.124
Chrome Google 35.0.1916.61 35.0.1916.61
Chrome Google 35.0.1916.98 35.0.1916.98
Chrome Google 35.0.1916.47 35.0.1916.47
Chrome Google 35.0.1916.110 35.0.1916.110
Chrome Google 35.0.1916.10 35.0.1916.10
Chrome Google 35.0.1916.20 35.0.1916.20
Chrome Google 35.0.1916.85 35.0.1916.85
Chrome Google 35.0.1916.9 35.0.1916.9
Chrome Google 35.0.1916.92 35.0.1916.92
Chrome Google 35.0.1916.119 35.0.1916.119
Chrome Google 35.0.1916.23 35.0.1916.23
Chrome Google 35.0.1916.49 35.0.1916.49
Chrome Google 35.0.1916.54 35.0.1916.54
Chrome Google 35.0.1916.106 35.0.1916.106
Chrome Google 35.0.1916.35 35.0.1916.35
Chrome Google 35.0.1916.33 35.0.1916.33
Chrome Google 35.0.1916.5 35.0.1916.5
Chrome Google 35.0.1916.11 35.0.1916.11
Chrome Google 35.0.1916.86 35.0.1916.86
Chrome Google 35.0.1916.117 35.0.1916.117
Chrome Google 35.0.1916.125 35.0.1916.125
Chrome Google 35.0.1916.17 35.0.1916.17
Chrome Google 35.0.1916.13 35.0.1916.13
Chrome Google 35.0.1916.118 35.0.1916.118
Chrome Google 35.0.1916.72 35.0.1916.72
Chrome Google 35.0.1916.109 35.0.1916.109
Chrome Google 35.0.1916.77 35.0.1916.77
Chrome Google 35.0.1916.88 35.0.1916.88
Chrome Google 35.0.1916.59 35.0.1916.59
Chrome Google 35.0.1916.44 35.0.1916.44
Chrome Google 35.0.1916.108 35.0.1916.108
Chrome Google 35.0.1916.74 35.0.1916.74
Chrome Google 35.0.1916.140 35.0.1916.140
Chrome Google 35.0.1916.45 35.0.1916.45
Chrome Google 35.0.1916.137 35.0.1916.137
Chrome Google 35.0.1916.18 35.0.1916.18
Chrome Google 35.0.1916.151 35.0.1916.151
Chrome Google 35.0.1916.107 35.0.1916.107
Chrome Google 35.0.1916.21 35.0.1916.21
Chrome Google 35.0.1916.6 35.0.1916.6
Chrome Google 35.0.1916.71 35.0.1916.71
Chrome Google 35.0.1916.41 35.0.1916.41
Chrome Google 35.0.1916.8 35.0.1916.8
Chrome Google 35.0.1916.4 35.0.1916.4
Chrome Google 35.0.1916.127 35.0.1916.127
Chrome Google 35.0.1916.19 35.0.1916.19
Chrome Google 35.0.1916.0 35.0.1916.0
Chrome Google 35.0.1916.40 35.0.1916.40
Chrome Google 35.0.1916.149 35.0.1916.149
Chrome Google 35.0.1916.101 35.0.1916.101
Chrome Google 35.0.1916.32 35.0.1916.32
Chrome Google 35.0.1916.51 35.0.1916.51
Chrome Google * 35.0.1916.152
Chrome Google 35.0.1916.115 35.0.1916.115
Chrome Google 35.0.1916.142 35.0.1916.142
Chrome Google 35.0.1916.116 35.0.1916.116
Chrome Google 35.0.1916.80 35.0.1916.80
Chrome Google 35.0.1916.39 35.0.1916.39
Chrome Google 35.0.1916.43 35.0.1916.43
Chrome Google 35.0.1916.121 35.0.1916.121
Chrome Google 35.0.1916.93 35.0.1916.93
Chrome Google 35.0.1916.113 35.0.1916.113
Chrome Google 35.0.1916.34 35.0.1916.34
Chrome Google 35.0.1916.37 35.0.1916.37
Chrome Google 35.0.1916.103 35.0.1916.103
Chrome Google 35.0.1916.123 35.0.1916.123
Chrome Google 35.0.1916.90 35.0.1916.90
Chrome Google 35.0.1916.68 35.0.1916.68
Chrome Google 35.0.1916.141 35.0.1916.141
Chrome Google 35.0.1916.1 35.0.1916.1
Chrome Google 35.0.1916.112 35.0.1916.112
Chrome Google 35.0.1916.27 35.0.1916.27
Chrome Google 35.0.1916.7 35.0.1916.7
Chrome Google 35.0.1916.126 35.0.1916.126
Chrome Google 35.0.1916.120 35.0.1916.120
Chrome Google 35.0.1916.84 35.0.1916.84
Chrome Google 35.0.1916.138 35.0.1916.138
Chrome Google 35.0.1916.46 35.0.1916.46
Chrome Google 35.0.1916.104 35.0.1916.104
Chrome Google 35.0.1916.22 35.0.1916.22
Chrome Google 35.0.1916.150 35.0.1916.150
Chrome Google 35.0.1916.69 35.0.1916.69
Chrome Google 35.0.1916.15 35.0.1916.15
Chrome Google 35.0.1916.31 35.0.1916.31
Chrome Google 35.0.1916.96 35.0.1916.96
Chrome Google 35.0.1916.14 35.0.1916.14
Chrome Google 35.0.1916.56 35.0.1916.56
Chrome Google 35.0.1916.2 35.0.1916.2
Chrome Google 35.0.1916.48 35.0.1916.48

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.

  • Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking.

  • D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.

  • 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]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as “rebasing” (for Windows) and “prelinking” (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking.

  • For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND [REF-1335].

  • Use a CPU and operating system that offers Data Execution Protection (using hardware NX or XD bits) or the equivalent techniques that simulate this feature in software, such as PaX [REF-60] [REF-61]. These techniques ensure that any instruction executed is exclusively at a memory address that is part of the code segment.

  • For more information on these techniques see D3-PSEP (Process Segment Execution Prevention) from D3FEND [REF-1336].

References