CVE Vulnerabilities

CVE-2015-1791

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Published: Jun 12, 2015 | Modified: Dec 13, 2022
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 LOW
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V3
Ubuntu
MEDIUM

Race condition in the ssl3_get_new_session_ticket function in ssl/s3_clnt.c in OpenSSL before 0.9.8zg, 1.0.0 before 1.0.0s, 1.0.1 before 1.0.1n, and 1.0.2 before 1.0.2b, when used for a multi-threaded client, allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact by providing a NewSessionTicket during an attempt to reuse a ticket that had been obtained earlier.

Weakness

The product contains a code sequence that can run concurrently with other code, and the code sequence requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence that is operating concurrently.

Affected Software

Name Vendor Start Version End Version
Openssl Openssl * 0.9.8zf (including)
Openssl Openssl 1.0.0 (including) 1.0.0 (including)
Openssl Openssl 1.0.0-beta1 (including) 1.0.0-beta1 (including)
Openssl Openssl 1.0.0-beta2 (including) 1.0.0-beta2 (including)
Openssl Openssl 1.0.0-beta3 (including) 1.0.0-beta3 (including)
Openssl Openssl 1.0.0-beta4 (including) 1.0.0-beta4 (including)
Openssl Openssl 1.0.0-beta5 (including) 1.0.0-beta5 (including)
Openssl Openssl 1.0.0a (including) 1.0.0a (including)
Openssl Openssl 1.0.0b (including) 1.0.0b (including)
Openssl Openssl 1.0.0c (including) 1.0.0c (including)
Openssl Openssl 1.0.0d (including) 1.0.0d (including)
Openssl Openssl 1.0.0e (including) 1.0.0e (including)
Openssl Openssl 1.0.0f (including) 1.0.0f (including)
Openssl Openssl 1.0.0g (including) 1.0.0g (including)
Openssl Openssl 1.0.0h (including) 1.0.0h (including)
Openssl Openssl 1.0.0i (including) 1.0.0i (including)
Openssl Openssl 1.0.0j (including) 1.0.0j (including)
Openssl Openssl 1.0.0k (including) 1.0.0k (including)
Openssl Openssl 1.0.0l (including) 1.0.0l (including)
Openssl Openssl 1.0.0m (including) 1.0.0m (including)
Openssl Openssl 1.0.0n (including) 1.0.0n (including)
Openssl Openssl 1.0.0o (including) 1.0.0o (including)
Openssl Openssl 1.0.0p (including) 1.0.0p (including)
Openssl Openssl 1.0.0q (including) 1.0.0q (including)
Openssl Openssl 1.0.0r (including) 1.0.0r (including)
Openssl Openssl 1.0.1 (including) 1.0.1 (including)
Openssl Openssl 1.0.1-beta1 (including) 1.0.1-beta1 (including)
Openssl Openssl 1.0.1-beta2 (including) 1.0.1-beta2 (including)
Openssl Openssl 1.0.1-beta3 (including) 1.0.1-beta3 (including)
Openssl Openssl 1.0.1a (including) 1.0.1a (including)
Openssl Openssl 1.0.1b (including) 1.0.1b (including)
Openssl Openssl 1.0.1c (including) 1.0.1c (including)
Openssl Openssl 1.0.1d (including) 1.0.1d (including)
Openssl Openssl 1.0.1e (including) 1.0.1e (including)
Openssl Openssl 1.0.1f (including) 1.0.1f (including)
Openssl Openssl 1.0.1g (including) 1.0.1g (including)
Openssl Openssl 1.0.1h (including) 1.0.1h (including)
Openssl Openssl 1.0.1i (including) 1.0.1i (including)
Openssl Openssl 1.0.1j (including) 1.0.1j (including)
Openssl Openssl 1.0.1k (including) 1.0.1k (including)
Openssl Openssl 1.0.1l (including) 1.0.1l (including)
Openssl Openssl 1.0.1m (including) 1.0.1m (including)
Openssl Openssl 1.0.2 (including) 1.0.2 (including)
Openssl Openssl 1.0.2-beta1 (including) 1.0.2-beta1 (including)
Openssl Openssl 1.0.2a (including) 1.0.2a (including)
Red Hat Enterprise Linux 6 RedHat openssl-0:1.0.1e-30.el6_6.11 *
Red Hat Enterprise Linux 7 RedHat openssl-1:1.0.1e-42.el7_1.8 *
Openssl Ubuntu artful *
Openssl Ubuntu bionic *
Openssl Ubuntu cosmic *
Openssl Ubuntu devel *
Openssl Ubuntu disco *
Openssl Ubuntu precise *
Openssl Ubuntu trusty *
Openssl Ubuntu upstream *
Openssl Ubuntu utopic *
Openssl Ubuntu vivid *
Openssl Ubuntu vivid/stable-phone-overlay *
Openssl Ubuntu vivid/ubuntu-core *
Openssl Ubuntu wily *
Openssl Ubuntu xenial *
Openssl Ubuntu yakkety *
Openssl Ubuntu zesty *
Openssl098 Ubuntu precise *
Openssl098 Ubuntu trusty *
Openssl098 Ubuntu upstream *
Openssl098 Ubuntu utopic *
Openssl098 Ubuntu vivid *

Extended Description

This can have security implications when the expected synchronization is in security-critical code, such as recording whether a user is authenticated or modifying important state information that should not be influenced by an outsider. A race condition occurs within concurrent environments, and is effectively a property of a code sequence. Depending on the context, a code sequence may be in the form of a function call, a small number of instructions, a series of program invocations, etc. A race condition violates these properties, which are closely related:

A race condition exists when an “interfering code sequence” can still access the shared resource, violating exclusivity. Programmers may assume that certain code sequences execute too quickly to be affected by an interfering code sequence; when they are not, this violates atomicity. For example, the single “x++” statement may appear atomic at the code layer, but it is actually non-atomic at the instruction layer, since it involves a read (the original value of x), followed by a computation (x+1), followed by a write (save the result to x). The interfering code sequence could be “trusted” or “untrusted.” A trusted interfering code sequence occurs within the product; it cannot be modified by the attacker, and it can only be invoked indirectly. An untrusted interfering code sequence can be authored directly by the attacker, and typically it is external to the vulnerable product.

Potential Mitigations

  • Minimize the usage of shared resources in order to remove as much complexity as possible from the control flow and to reduce the likelihood of unexpected conditions occurring.
  • Additionally, this will minimize the amount of synchronization necessary and may even help to reduce the likelihood of a denial of service where an attacker may be able to repeatedly trigger a critical section (CWE-400).

References