1. CVE archive
  2. 2015
  3. CVE-2015-3415

CVE-2015-3415

7.5 High severity CVSS v2.0 · source NVD AV:N/AC:L/Au:N/C:P/I:P/A:P 7.5 – High

Description

The sqlite3VdbeExec function in vdbe.c in SQLite before 3.8.9 does not properly implement comparison operators, which allows context-dependent attackers to cause a denial of service (invalid free operation) or possibly have unspecified other impact via a crafted CHECK clause, as demonstrated by CHECK(0&O>O) in a CREATE TABLE statement.

Affected products

VendorProductVersionPlatform
apple mac os x 10.10.5 –
apple watchos 1.0.1 –
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
canonical ubuntu linux 15.04 –
debian debian linux 8.0 –
php php >= 5.4.0 < 5.4.42 –
php php >= 5.5.0 < 5.5.26 –
php php >= 5.6.0 < 5.6.10 –
sqlite sqlite <= 3.8.8.3 –
All 78 Sqlite vulnerabilities

Vulnerability type

CWE-404 Improper Resource Shutdown or Release

The product does not release or incorrectly releases a resource before it is made available for re-use.

When a resource is created or allocated, the developer is responsible for properly releasing the resource as well as accounting for all potential paths of expiration or invalidation, such as a set period of time or revocation.

Impact on systems

ScopeImpact
Availability, Other DoS: Resource Consumption (Other), Varies by Context
Most unreleased resource issues result in general software reliability problems, but if an attacker can intentionally trigger a resource leak, the attacker might be able to launch a denial of service attack by depleting the resource pool.
Confidentiality Read Application Data
When a resource containing sensitive information is not correctly shutdown, it may expose the sensitive data in a subsequent allocation.

How to prevent it

Requirements · Language Selection Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
Implementation It is good practice to be responsible for freeing all resources you allocate and to be consistent with how and where you free memory in a function. If you allocate memory that you intend to free upon completion of the function, you must be sure to free the memory at all exit points for that function including error conditions.
Implementation Memory should be allocated/freed using matching functions such as malloc/free, new/delete, and new[]/delete[].
Implementation When releasing a complex object or structure, ensure that you properly dispose of all of its member components, not just the object itself.

All 740 CWE-404 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org