CVE Vulnerabilities

CVE-2010-2023

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

Published: Jun 07, 2010 | Modified: Apr 11, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
4.4 MEDIUM
AV:L/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
4.3 MODERATE
AV:N/AC:M/Au:N/C:N/I:P/A:N
RedHat/V3
Ubuntu
LOW

transports/appendfile.c in Exim before 4.72, when a world-writable sticky-bit mail directory is used, does not verify the st_nlink field of mailbox files, which allows local users to cause a denial of service or possibly gain privileges by creating a hard link to another users file.

Weakness

The product contains a concurrent code sequence that 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 operating concurrently.

Affected Software

Name Vendor Start Version End Version
Exim Exim * 4.71 (including)
Exim Exim 4.10 (including) 4.10 (including)
Exim Exim 4.20 (including) 4.20 (including)
Exim Exim 4.21 (including) 4.21 (including)
Exim Exim 4.22 (including) 4.22 (including)
Exim Exim 4.23 (including) 4.23 (including)
Exim Exim 4.24 (including) 4.24 (including)
Exim Exim 4.30 (including) 4.30 (including)
Exim Exim 4.31 (including) 4.31 (including)
Exim Exim 4.32 (including) 4.32 (including)
Exim Exim 4.33 (including) 4.33 (including)
Exim Exim 4.34 (including) 4.34 (including)
Exim Exim 4.40 (including) 4.40 (including)
Exim Exim 4.41 (including) 4.41 (including)
Exim Exim 4.42 (including) 4.42 (including)
Exim Exim 4.43 (including) 4.43 (including)
Exim Exim 4.44 (including) 4.44 (including)
Exim Exim 4.50 (including) 4.50 (including)
Exim Exim 4.51 (including) 4.51 (including)
Exim Exim 4.52 (including) 4.52 (including)
Exim Exim 4.53 (including) 4.53 (including)
Exim Exim 4.54 (including) 4.54 (including)
Exim Exim 4.60 (including) 4.60 (including)
Exim Exim 4.61 (including) 4.61 (including)
Exim Exim 4.62 (including) 4.62 (including)
Exim Exim 4.63 (including) 4.63 (including)
Exim Exim 4.64 (including) 4.64 (including)
Exim Exim 4.65 (including) 4.65 (including)
Exim Exim 4.66 (including) 4.66 (including)
Exim Exim 4.67 (including) 4.67 (including)
Exim Exim 4.68 (including) 4.68 (including)
Exim Exim 4.69 (including) 4.69 (including)
Exim Exim 4.70 (including) 4.70 (including)
Exim4 Ubuntu dapper *
Exim4 Ubuntu devel *
Exim4 Ubuntu hardy *
Exim4 Ubuntu jaunty *
Exim4 Ubuntu karmic *
Exim4 Ubuntu lucid *
Exim4 Ubuntu maverick *
Exim4 Ubuntu upstream *

Extended Description

A race condition occurs within concurrent environments, and it 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. 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