CVE Vulnerabilities

CVE-2013-3302

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

Published: Apr 29, 2013 | Modified: Feb 13, 2023
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.7 LOW
AV:L/AC:M/Au:N/C:N/I:N/A:C
RedHat/V3
Ubuntu
MEDIUM

Race condition in the smb_send_rqst function in fs/cifs/transport.c in the Linux kernel before 3.7.2 allows local users to cause a denial of service (NULL pointer dereference and OOPS) or possibly have unspecified other impact via vectors involving a reconnection event.

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
Linux_kernel Linux * 3.7.1 (including)
Linux_kernel Linux 3.0-rc1 (including) 3.0-rc1 (including)
Linux_kernel Linux 3.0-rc2 (including) 3.0-rc2 (including)
Linux_kernel Linux 3.0-rc3 (including) 3.0-rc3 (including)
Linux_kernel Linux 3.0-rc4 (including) 3.0-rc4 (including)
Linux_kernel Linux 3.0-rc5 (including) 3.0-rc5 (including)
Linux_kernel Linux 3.0-rc6 (including) 3.0-rc6 (including)
Linux_kernel Linux 3.0-rc7 (including) 3.0-rc7 (including)
Linux_kernel Linux 3.0.1 (including) 3.0.1 (including)
Linux_kernel Linux 3.0.2 (including) 3.0.2 (including)
Linux_kernel Linux 3.0.3 (including) 3.0.3 (including)
Linux_kernel Linux 3.0.4 (including) 3.0.4 (including)
Linux_kernel Linux 3.0.5 (including) 3.0.5 (including)
Linux_kernel Linux 3.0.6 (including) 3.0.6 (including)
Linux_kernel Linux 3.0.7 (including) 3.0.7 (including)
Linux_kernel Linux 3.0.8 (including) 3.0.8 (including)
Linux_kernel Linux 3.0.9 (including) 3.0.9 (including)
Linux_kernel Linux 3.0.10 (including) 3.0.10 (including)
Linux_kernel Linux 3.0.11 (including) 3.0.11 (including)
Linux_kernel Linux 3.0.12 (including) 3.0.12 (including)
Linux_kernel Linux 3.0.13 (including) 3.0.13 (including)
Linux_kernel Linux 3.0.14 (including) 3.0.14 (including)
Linux_kernel Linux 3.0.15 (including) 3.0.15 (including)
Linux_kernel Linux 3.0.16 (including) 3.0.16 (including)
Linux_kernel Linux 3.0.17 (including) 3.0.17 (including)
Linux_kernel Linux 3.0.18 (including) 3.0.18 (including)
Linux_kernel Linux 3.0.19 (including) 3.0.19 (including)
Linux_kernel Linux 3.0.20 (including) 3.0.20 (including)
Linux_kernel Linux 3.0.21 (including) 3.0.21 (including)
Linux_kernel Linux 3.0.22 (including) 3.0.22 (including)
Linux_kernel Linux 3.0.23 (including) 3.0.23 (including)
Linux_kernel Linux 3.0.24 (including) 3.0.24 (including)
Linux_kernel Linux 3.0.25 (including) 3.0.25 (including)
Linux_kernel Linux 3.0.26 (including) 3.0.26 (including)
Linux_kernel Linux 3.0.27 (including) 3.0.27 (including)
Linux_kernel Linux 3.0.28 (including) 3.0.28 (including)
Linux_kernel Linux 3.0.29 (including) 3.0.29 (including)
Linux_kernel Linux 3.0.30 (including) 3.0.30 (including)
Linux_kernel Linux 3.0.31 (including) 3.0.31 (including)
Linux_kernel Linux 3.0.32 (including) 3.0.32 (including)
Linux_kernel Linux 3.0.33 (including) 3.0.33 (including)
Linux_kernel Linux 3.0.34 (including) 3.0.34 (including)
Linux_kernel Linux 3.0.35 (including) 3.0.35 (including)
Linux_kernel Linux 3.0.36 (including) 3.0.36 (including)
Linux_kernel Linux 3.0.37 (including) 3.0.37 (including)
Linux_kernel Linux 3.0.38 (including) 3.0.38 (including)
Linux_kernel Linux 3.0.39 (including) 3.0.39 (including)
Linux_kernel Linux 3.0.40 (including) 3.0.40 (including)
Linux_kernel Linux 3.0.41 (including) 3.0.41 (including)
Linux_kernel Linux 3.0.42 (including) 3.0.42 (including)
Linux_kernel Linux 3.0.43 (including) 3.0.43 (including)
Linux_kernel Linux 3.0.44 (including) 3.0.44 (including)
Linux_kernel Linux 3.0.45 (including) 3.0.45 (including)
Linux_kernel Linux 3.0.46 (including) 3.0.46 (including)
Linux_kernel Linux 3.0.47 (including) 3.0.47 (including)
Linux_kernel Linux 3.0.48 (including) 3.0.48 (including)
Linux_kernel Linux 3.0.49 (including) 3.0.49 (including)
Linux_kernel Linux 3.0.50 (including) 3.0.50 (including)
Linux_kernel Linux 3.0.51 (including) 3.0.51 (including)
Linux_kernel Linux 3.0.52 (including) 3.0.52 (including)
Linux_kernel Linux 3.0.53 (including) 3.0.53 (including)
Linux_kernel Linux 3.0.54 (including) 3.0.54 (including)
Linux_kernel Linux 3.0.55 (including) 3.0.55 (including)
Linux_kernel Linux 3.0.56 (including) 3.0.56 (including)
Linux_kernel Linux 3.0.57 (including) 3.0.57 (including)
Linux_kernel Linux 3.0.58 (including) 3.0.58 (including)
Linux_kernel Linux 3.0.59 (including) 3.0.59 (including)
Linux_kernel Linux 3.0.60 (including) 3.0.60 (including)
Linux_kernel Linux 3.0.61 (including) 3.0.61 (including)
Linux_kernel Linux 3.0.62 (including) 3.0.62 (including)
Linux_kernel Linux 3.0.63 (including) 3.0.63 (including)
Linux_kernel Linux 3.0.64 (including) 3.0.64 (including)
Linux_kernel Linux 3.0.65 (including) 3.0.65 (including)
Linux_kernel Linux 3.0.66 (including) 3.0.66 (including)
Linux_kernel Linux 3.0.67 (including) 3.0.67 (including)
Linux_kernel Linux 3.0.68 (including) 3.0.68 (including)
Linux_kernel Linux 3.1 (including) 3.1 (including)
Linux_kernel Linux 3.1-rc1 (including) 3.1-rc1 (including)
Linux_kernel Linux 3.1-rc2 (including) 3.1-rc2 (including)
Linux_kernel Linux 3.1-rc3 (including) 3.1-rc3 (including)
Linux_kernel Linux 3.1-rc4 (including) 3.1-rc4 (including)
Linux_kernel Linux 3.1.1 (including) 3.1.1 (including)
Linux_kernel Linux 3.1.2 (including) 3.1.2 (including)
Linux_kernel Linux 3.1.3 (including) 3.1.3 (including)
Linux_kernel Linux 3.1.4 (including) 3.1.4 (including)
Linux_kernel Linux 3.1.5 (including) 3.1.5 (including)
Linux_kernel Linux 3.1.6 (including) 3.1.6 (including)
Linux_kernel Linux 3.1.7 (including) 3.1.7 (including)
Linux_kernel Linux 3.1.8 (including) 3.1.8 (including)
Linux_kernel Linux 3.1.9 (including) 3.1.9 (including)
Linux_kernel Linux 3.1.10 (including) 3.1.10 (including)
Linux_kernel Linux 3.2 (including) 3.2 (including)
Linux_kernel Linux 3.2-rc2 (including) 3.2-rc2 (including)
Linux_kernel Linux 3.2-rc3 (including) 3.2-rc3 (including)
Linux_kernel Linux 3.2-rc4 (including) 3.2-rc4 (including)
Linux_kernel Linux 3.2-rc5 (including) 3.2-rc5 (including)
Linux_kernel Linux 3.2-rc6 (including) 3.2-rc6 (including)
Linux_kernel Linux 3.2-rc7 (including) 3.2-rc7 (including)
Linux_kernel Linux 3.2.1 (including) 3.2.1 (including)
Linux_kernel Linux 3.2.2 (including) 3.2.2 (including)
Linux_kernel Linux 3.2.3 (including) 3.2.3 (including)
Linux_kernel Linux 3.2.4 (including) 3.2.4 (including)
Linux_kernel Linux 3.2.5 (including) 3.2.5 (including)
Linux_kernel Linux 3.2.6 (including) 3.2.6 (including)
Linux_kernel Linux 3.2.7 (including) 3.2.7 (including)
Linux_kernel Linux 3.2.8 (including) 3.2.8 (including)
Linux_kernel Linux 3.2.9 (including) 3.2.9 (including)
Linux_kernel Linux 3.2.10 (including) 3.2.10 (including)
Linux_kernel Linux 3.2.11 (including) 3.2.11 (including)
Linux_kernel Linux 3.2.12 (including) 3.2.12 (including)
Linux_kernel Linux 3.2.13 (including) 3.2.13 (including)
Linux_kernel Linux 3.2.14 (including) 3.2.14 (including)
Linux_kernel Linux 3.2.15 (including) 3.2.15 (including)
Linux_kernel Linux 3.2.16 (including) 3.2.16 (including)
Linux_kernel Linux 3.2.17 (including) 3.2.17 (including)
Linux_kernel Linux 3.2.18 (including) 3.2.18 (including)
Linux_kernel Linux 3.2.19 (including) 3.2.19 (including)
Linux_kernel Linux 3.2.20 (including) 3.2.20 (including)
Linux_kernel Linux 3.2.21 (including) 3.2.21 (including)
Linux_kernel Linux 3.2.22 (including) 3.2.22 (including)
Linux_kernel Linux 3.2.23 (including) 3.2.23 (including)
Linux_kernel Linux 3.2.24 (including) 3.2.24 (including)
Linux_kernel Linux 3.2.25 (including) 3.2.25 (including)
Linux_kernel Linux 3.2.26 (including) 3.2.26 (including)
Linux_kernel Linux 3.2.27 (including) 3.2.27 (including)
Linux_kernel Linux 3.2.28 (including) 3.2.28 (including)
Linux_kernel Linux 3.2.29 (including) 3.2.29 (including)
Linux_kernel Linux 3.2.30 (including) 3.2.30 (including)
Linux_kernel Linux 3.3 (including) 3.3 (including)
Linux_kernel Linux 3.3-rc1 (including) 3.3-rc1 (including)
Linux_kernel Linux 3.3-rc2 (including) 3.3-rc2 (including)
Linux_kernel Linux 3.3-rc3 (including) 3.3-rc3 (including)
Linux_kernel Linux 3.3-rc4 (including) 3.3-rc4 (including)
Linux_kernel Linux 3.3-rc5 (including) 3.3-rc5 (including)
Linux_kernel Linux 3.3-rc6 (including) 3.3-rc6 (including)
Linux_kernel Linux 3.3-rc7 (including) 3.3-rc7 (including)
Linux_kernel Linux 3.3.1 (including) 3.3.1 (including)
Linux_kernel Linux 3.3.2 (including) 3.3.2 (including)
Linux_kernel Linux 3.3.3 (including) 3.3.3 (including)
Linux_kernel Linux 3.3.4 (including) 3.3.4 (including)
Linux_kernel Linux 3.3.5 (including) 3.3.5 (including)
Linux_kernel Linux 3.3.6 (including) 3.3.6 (including)
Linux_kernel Linux 3.3.7 (including) 3.3.7 (including)
Linux_kernel Linux 3.3.8 (including) 3.3.8 (including)
Linux_kernel Linux 3.4 (including) 3.4 (including)
Linux_kernel Linux 3.4-rc1 (including) 3.4-rc1 (including)
Linux_kernel Linux 3.4-rc2 (including) 3.4-rc2 (including)
Linux_kernel Linux 3.4-rc3 (including) 3.4-rc3 (including)
Linux_kernel Linux 3.4-rc4 (including) 3.4-rc4 (including)
Linux_kernel Linux 3.4-rc5 (including) 3.4-rc5 (including)
Linux_kernel Linux 3.4-rc6 (including) 3.4-rc6 (including)
Linux_kernel Linux 3.4-rc7 (including) 3.4-rc7 (including)
Linux_kernel Linux 3.4.1 (including) 3.4.1 (including)
Linux_kernel Linux 3.4.2 (including) 3.4.2 (including)
Linux_kernel Linux 3.4.3 (including) 3.4.3 (including)
Linux_kernel Linux 3.4.4 (including) 3.4.4 (including)
Linux_kernel Linux 3.4.5 (including) 3.4.5 (including)
Linux_kernel Linux 3.4.6 (including) 3.4.6 (including)
Linux_kernel Linux 3.4.7 (including) 3.4.7 (including)
Linux_kernel Linux 3.4.8 (including) 3.4.8 (including)
Linux_kernel Linux 3.4.9 (including) 3.4.9 (including)
Linux_kernel Linux 3.4.10 (including) 3.4.10 (including)
Linux_kernel Linux 3.4.11 (including) 3.4.11 (including)
Linux_kernel Linux 3.4.12 (including) 3.4.12 (including)
Linux_kernel Linux 3.4.13 (including) 3.4.13 (including)
Linux_kernel Linux 3.4.14 (including) 3.4.14 (including)
Linux_kernel Linux 3.4.15 (including) 3.4.15 (including)
Linux_kernel Linux 3.4.16 (including) 3.4.16 (including)
Linux_kernel Linux 3.4.17 (including) 3.4.17 (including)
Linux_kernel Linux 3.4.18 (including) 3.4.18 (including)
Linux_kernel Linux 3.4.19 (including) 3.4.19 (including)
Linux_kernel Linux 3.4.20 (including) 3.4.20 (including)
Linux_kernel Linux 3.4.21 (including) 3.4.21 (including)
Linux_kernel Linux 3.4.22 (including) 3.4.22 (including)
Linux_kernel Linux 3.4.23 (including) 3.4.23 (including)
Linux_kernel Linux 3.4.24 (including) 3.4.24 (including)
Linux_kernel Linux 3.4.25 (including) 3.4.25 (including)
Linux_kernel Linux 3.4.26 (including) 3.4.26 (including)
Linux_kernel Linux 3.4.27 (including) 3.4.27 (including)
Linux_kernel Linux 3.4.28 (including) 3.4.28 (including)
Linux_kernel Linux 3.4.29 (including) 3.4.29 (including)
Linux_kernel Linux 3.4.30 (including) 3.4.30 (including)
Linux_kernel Linux 3.4.31 (including) 3.4.31 (including)
Linux_kernel Linux 3.4.32 (including) 3.4.32 (including)
Linux_kernel Linux 3.5.1 (including) 3.5.1 (including)
Linux_kernel Linux 3.5.2 (including) 3.5.2 (including)
Linux_kernel Linux 3.5.3 (including) 3.5.3 (including)
Linux_kernel Linux 3.5.4 (including) 3.5.4 (including)
Linux_kernel Linux 3.5.5 (including) 3.5.5 (including)
Linux_kernel Linux 3.5.6 (including) 3.5.6 (including)
Linux_kernel Linux 3.5.7 (including) 3.5.7 (including)
Linux_kernel Linux 3.6 (including) 3.6 (including)
Linux_kernel Linux 3.6.1 (including) 3.6.1 (including)
Linux_kernel Linux 3.6.2 (including) 3.6.2 (including)
Linux_kernel Linux 3.6.3 (including) 3.6.3 (including)
Linux_kernel Linux 3.6.4 (including) 3.6.4 (including)
Linux_kernel Linux 3.6.5 (including) 3.6.5 (including)
Linux_kernel Linux 3.6.6 (including) 3.6.6 (including)
Linux_kernel Linux 3.6.7 (including) 3.6.7 (including)
Linux_kernel Linux 3.6.8 (including) 3.6.8 (including)
Linux_kernel Linux 3.6.9 (including) 3.6.9 (including)
Linux_kernel Linux 3.6.10 (including) 3.6.10 (including)
Linux_kernel Linux 3.6.11 (including) 3.6.11 (including)
Linux_kernel Linux 3.7 (including) 3.7 (including)
Linux Ubuntu hardy *
Linux Ubuntu oneiric *
Linux Ubuntu upstream *
Linux-2.6 Ubuntu upstream *
Linux-armadaxp Ubuntu upstream *
Linux-ec2 Ubuntu upstream *
Linux-fsl-imx51 Ubuntu lucid *
Linux-fsl-imx51 Ubuntu upstream *
Linux-linaro-omap Ubuntu oneiric *
Linux-linaro-omap Ubuntu precise *
Linux-linaro-omap Ubuntu quantal *
Linux-linaro-omap Ubuntu upstream *
Linux-linaro-shared Ubuntu oneiric *
Linux-linaro-shared Ubuntu precise *
Linux-linaro-shared Ubuntu quantal *
Linux-linaro-shared Ubuntu upstream *
Linux-linaro-vexpress Ubuntu oneiric *
Linux-linaro-vexpress Ubuntu precise *
Linux-linaro-vexpress Ubuntu quantal *
Linux-linaro-vexpress Ubuntu upstream *
Linux-lts-backport-maverick Ubuntu lucid *
Linux-lts-backport-maverick Ubuntu upstream *
Linux-lts-backport-oneiric Ubuntu lucid *
Linux-lts-backport-oneiric Ubuntu upstream *
Linux-lts-quantal Ubuntu upstream *
Linux-lts-raring Ubuntu upstream *
Linux-mvl-dove Ubuntu lucid *
Linux-mvl-dove Ubuntu upstream *
Linux-qcm-msm Ubuntu lucid *
Linux-qcm-msm Ubuntu oneiric *
Linux-qcm-msm Ubuntu precise *
Linux-qcm-msm Ubuntu quantal *
Linux-qcm-msm Ubuntu upstream *
Linux-ti-omap4 Ubuntu oneiric *
Linux-ti-omap4 Ubuntu upstream *

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