1. CVE archive
  2. 2012
  3. CVE-2012-1972

CVE-2012-1972

10 Critical severity CVSS v2.0 · source NVD AV:N/AC:L/Au:N/C:C/I:C/A:C 10 – Critical

Description

Use-after-free vulnerability in the nsHTMLEditor::CollapseAdjacentTextNodes function in Mozilla Firefox before 15.0, Firefox ESR 10.x before 10.0.7, Thunderbird before 15.0, Thunderbird ESR 10.x before 10.0.7, and SeaMonkey before 2.12 allows remote attackers to execute arbitrary code or cause a denial of service (heap memory corruption) via unspecified vectors.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 10.04 –
canonical ubuntu linux 11.04 –
canonical ubuntu linux 11.10 –
canonical ubuntu linux 12.04 –
debian debian linux 6.0 –
debian debian linux 7.0 –
mozilla firefox < 15.0 –
mozilla firefox >= 10.0 < 10.0.7 –
mozilla seamonkey < 2.12 –
mozilla thunderbird < 15.0 –
mozilla thunderbird esr >= 10.0 < 10.0.7 –
opensuse opensuse 12.2 –
redhat enterprise linux desktop 5.0 –
redhat enterprise linux desktop 6.0 –
redhat enterprise linux eus 6.3 –
redhat enterprise linux server 5.0 –
redhat enterprise linux server 6.0 –
redhat enterprise linux server eus 6.3 –
redhat enterprise linux workstation 5.0 –
redhat enterprise linux workstation 6.0 –
suse linux enterprise desktop 10 sp4 –
suse linux enterprise desktop 11 sp2 –
suse linux enterprise server 10 sp4 –
suse linux enterprise server 11 sp2 –
suse linux enterprise server 11 sp2 vmware
suse linux enterprise software development kit 11 sp2 –
All 3,913 Mozilla Firefox vulnerabilities
All 704 Mozilla Seamonkey vulnerabilities
All 2,551 Mozilla Thunderbird vulnerabilities

Vulnerability type

CWE-416 Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

Impact on systems

ScopeImpact
Integrity Modify Memory
The use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere.
Availability DoS: Crash, Exit, or Restart
If chunk consolidation occurs after the use of previously freed data, the process may crash when invalid data is used as chunk information.
Confidentiality Read Memory
Read operations on freed memory can sometimes leak sensitive information instead of causing a crash
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
If malicious data is entered before chunk consolidation can take place, it may be possible to take advantage of a write-what-where primitive to execute arbitrary code. If the newly allocated data happens to hold a class, in C++ for example, various function pointers may be scattered within the heap data. If one of these function pointers is overwritten with an address to valid shellcode, execution of arbitrary code can be achieved.

How to prevent it

Architecture and Design · Language Selection Choose a language that provides automatic memory management.
Implementation · Attack Surface Reduction When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

All 9,637 CWE-416 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org