CVE-2011-5118 - Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Severity

19%

Complexity

34%

Confidentiality

48%

Multiple race conditions in Comodo Internet Security before 5.8.213334.2131 allow local users to bypass the Defense+ feature via unspecified vectors.

Multiple race conditions in Comodo Internet Security before 5.8.213334.2131 allow local users to bypass the Defense+ feature via unspecified vectors.

CVSS 2.0 Base Score 1.9. CVSS Attack Vector: local. CVSS Attack Complexity: medium. CVSS Vector: (AV:L/AC:M/Au:N/C:N/I:P/A:N).

Demo Examples

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

CWE-362

This code could be used in an e-commerce application that supports transfers between accounts. It takes the total amount of the transfer, sends it to the new account, and deducts the amount from the original account.


               
NotifyUser("New balance: $newbalance");
FatalError("Bad Transfer Amount");
FatalError("Insufficient Funds");

A race condition could occur between the calls to GetBalanceFromDatabase() and SendNewBalanceToDatabase().

Suppose the balance is initially 100.00. An attack could be constructed as follows:


               
PROGRAM-2 sends a request to update the database, setting the balance to 99.00

At this stage, the attacker should have a balance of 19.00 (due to 81.00 worth of transfers), but the balance is 99.00, as recorded in the database.

To prevent this weakness, the programmer has several options, including using a lock to prevent multiple simultaneous requests to the web application, or using a synchronization mechanism that includes all the code between GetBalanceFromDatabase() and SendNewBalanceToDatabase().

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

CWE-362

The following function attempts to acquire a lock in order to perform operations on a shared resource.


               
}
pthread_mutex_unlock(mutex);/* access shared resource */

However, the code does not check the value returned by pthread_mutex_lock() for errors. If pthread_mutex_lock() cannot acquire the mutex for any reason, the function may introduce a race condition into the program and result in undefined behavior.

In order to avoid data races, correctly written programs must check the result of thread synchronization functions and appropriately handle all errors, either by attempting to recover from them or reporting it to higher levels.


               
}
return pthread_mutex_unlock(mutex);
return result;
/* access shared resource */

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

CWE-362

Suppose a processor's Memory Management Unit (MMU) has 5 other shadow MMUs to distribute its workload for its various cores. Each MMU has the start address and end address of "accessible" memory. Any time this accessible range changes (as per the processor's boot status), the main MMU sends an update message to all the shadow MMUs.

Suppose the interconnect fabric does not prioritize such "update" packets over other general traffic packets. This introduces a race condition. If an attacker can flood the target with enough messages so that some of those attack packets reach the target before the new access ranges gets updated, then the attacker can leverage this scenario.

Overview

Type

Comodo Internet Security

First reported 12 years ago

2012-08-26 03:17:00

Last updated 12 years ago

2012-08-27 04:00:00

Affected Software

Comodo Internet Security 3.0.14.276

3.0.14.276

Comodo Internet Security 3.0.15.277

3.0.15.277

Comodo Internet Security 3.0.16.295

3.0.16.295

Comodo Internet Security 3.0.17.304

3.0.17.304

Comodo Internet Security 3.0.18.309

3.0.18.309

Comodo Internet Security 3.0.19.318

3.0.19.318

Comodo Internet Security 3.0.20.320

3.0.20.320

Comodo Internet Security 3.0.22.349

3.0.22.349

Comodo Internet Security 3.0.23.364

3.0.23.364

Comodo Internet Security 3.0.24.368

3.0.24.368

Comodo Internet Security 3.0.25.378

3.0.25.378

Comodo Internet Security 3.5.53896.424

3.5.53896.424

Comodo Internet Security 3.5.54375.427

3.5.54375.427

Comodo Internet Security 3.5.55810.432

3.5.55810.432

Comodo Internet Security 3.5.57173.439

3.5.57173.439

Comodo Internet Security 3.8.64263.468

3.8.64263.468

Comodo Internet Security 3.8.64739.471

3.8.64739.471

Comodo Internet Security 3.8.65951.477

3.8.65951.477

Comodo Internet Security 3.9.95478.509

3.9.95478.509

Comodo Internet Security 3.10.102363.531

3.10.102363.531

Comodo Internet Security 3.11.108364.552

3.11.108364.552

Comodo Internet Security 3.12.111745.560

3.12.111745.560

Comodo Internet Security 3.13.121240.574

3.13.121240.574

Comodo Internet Security 3.13.125662.579

3.13.125662.579

Comodo Internet Security 3.14.130099.587

3.14.130099.587

Comodo Internet Security 4.0.138377.779

4.0.138377.779

Comodo Internet Security 4.0.141842.828

4.0.141842.828

Comodo Internet Security 4.1.150349.920

4.1.150349.920

Comodo Internet Security 5.0.163652.1142

5.0.163652.1142

Comodo Internet Security 5.3.174622.1216

5.3.174622.1216

Comodo Internet Security 5.3.175888.1227

5.3.175888.1227

Comodo Internet Security 5.3.176757.1236

5.3.176757.1236

Comodo Internet Security 5.3.181415.1237

5.3.181415.1237

Comodo Internet Security 5.4.189822.1355

5.4.189822.1355

Comodo Internet Security 5.5.195786.1383

5.5.195786.1383

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.