Skip to content
OpenAdvisories

Weakness (CWE)

CWE-366: Race Condition within a Thread

Base Draft

If two threads of execution use a resource simultaneously, there exists the possibility that resources may be used while invalid, in turn making the state of execution undefined.

How to prevent it (2 mitigations)
  1. Architecture and Design

    Use locking functionality. This is the recommended solution. Implement some form of locking mechanism around code which alters or reads persistent data in a multithreaded environment.

  2. Architecture and Design

    Create resource-locking validation checks. If no inherent locking mechanisms exist, use flags and signals to enforce your own blocking scheme when resources are being used by other threads of execution.

Source: MITRE CWE-366

22 results · Feed

  • High 7.4

    Apache Tomcat Native: Client certificate requirements can be down-graded

    Race condition within a thread vulnerability in Apache Tomcat Native allowed client certificate verification requirements to be down-graded for some configurations. This issue affects Apache Tomcat Native: from 2.0.0 through 2.0.15, from 1.3.0 through 1.3.8. …

  • High 8.1

    ZCC race condition in ZPA tunnel handler

    A race condition in the ZPA tunnel handler of affected versions of Zscaler Client Connector (ZCC) allows a heap corruption, resulting in a denial of service (client crash) and potentially arbitrary code execution in the context of the ZCC process.

  • High 7.8

    RDMA/mlx4: Fix mis-use of RCU in mlx4_srq_event()

    In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx4: Fix mis-use of RCU in mlx4_srq_event() Sashiko points out the radix_tree itself is RCU safe, but nothing ever frees the mlx4_srq struct with RCU, and it isn't even accessed within …

  • High 7.5

    .NET Framework Denial of Service Vulnerability

    Improper input validation in .NET Framework allows an unauthorized attacker to deny service over a network.

  • Medium 6.2

    Calling NSS-backed functions that support caching via nscd may call the nscd client side code and in the GNU C Library …

  • Medium 5.9

    Race condition vulnerability in SAP Commerce Cloud

    A race condition vulnerability exists in the SAP Commerce cloud. Because of this when an attacker adds products to a cart, it may result in a cart entry being created with erroneous product value which could be checked out. This leads to high impact on data i…

  • Medium 5.9

    Outray has a Race Condition in main/apps/web/src/routes/api/$orgSlug/subdomains/index.ts

    Outray openSource ngrok alternative. Prior to 0.1.5, this vulnerability allows a user i.e a free plan user to get more than the desired subdomains due to lack of db transaction lock mechanisms in main/apps/web/src/routes/api/$orgSlug/subdomains/index.ts. This…

  • Critical 9.8

    Mutiple vulnerabilities in the Viridian interface

    [This CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] There are multiple issues related to the handling and accessing of guest memory pages in the viridian code: 1. A NULL pointer dere…

  • High 8.7

    XZ has a heap-use-after-free bug in threaded .xz decoder

    XZ Utils provide a general-purpose data-compression library plus command-line tools. In XZ Utils 5.3.3alpha to 5.8.0, the multithreaded .xz decoder in liblzma has a bug where invalid input can at least result in a crash. The effects include heap use after fre…

  • High 7.8

    A race condition in Ivanti Application Control Engine before version 10.14.4.0 allows a local authenticated attacker to…

  • High 8.8
    CVE-2024-6778 Public exploit

    Race in DevTools in Google Chrome prior to 126.0.6478.182 allowed an attacker who convinced a user to install a malicio…

  • Low 3.1

    Race Condition Vulnerability in zenml-io/zenml

    A race condition vulnerability exists in zenml-io/zenml versions up to and including 0.55.3, which allows for the creation of multiple users with the same username when requests are sent in parallel. This issue was fixed in version 0.55.5. The vulnerability a…

  • High 7.0
    CVE-2023-6546 Public exploit

    Kernel: gsm multiplexing race condition leads to privilege escalation

    A race condition was found in the GSM 0710 tty multiplexor in the Linux kernel. This issue occurs when two threads execute the GSMIOC_SETCONF ioctl on the same tty file descriptor with the gsm line discipline enabled, and can lead to a use-after-free problem …

  • Medium 4.7

    Kernel: race between task migrating pages and another task calling exit_mmap to release those same pages getting invalid opcode bug in include/linux/swapops.h

    A flaw was found in pfn_swap_entry_to_page in memory management subsystem in the Linux Kernel. In this flaw, an attacker with a local user privilege may cause a denial of service problem due to a BUG statement referencing pmd_t x.

  • Medium 6.5

    Race Condition within a Thread in answerdev/answer

    Race Condition within a Thread in GitHub repository answerdev/answer prior to v1.1.1.

  • Medium 6.5

    Race Condition within a Thread in it-novum/openitcockpit

    Race Condition within a Thread in GitHub repository it-novum/openitcockpit prior to 4.6.5.

  • Low —

    Race Condition Enabling Link Following and Time-of-check Time-of-use (TOCTOU) Race Condition in remove_dir_all

    The `remove_dir_all` crate is a Rust library that offers additional features over the Rust standard library `fs::remove_dir_all` function. It suffers the same class of failure as the code it was layering over: TOCTOU race conditions, with the ability to cause…

  • Medium 4.6

    oznetmaster SSharpSmartThreadPool SmartThreadPool.cs race condition

    A vulnerability was found in oznetmaster SSharpSmartThreadPool. It has been classified as problematic. This affects an unknown part of the file SSharpSmartThreadPool/SmartThreadPool.cs. The manipulation leads to race condition within a thread. The complexity …

  • Unscored —

    A race condition was found the Linux kernel in perf_event_open() which can be exploited by an unprivileged user to gain…

  • Medium 5.9

    Race condition in tokio

    An issue was discovered in the tokio crate before 1.8.1 for Rust. Upon a JoinHandle::abort, a Task may be dropped in the wrong thread.

  • Critical 9.8

    Race Condition within a Thread vulnerability in iscsi_snapshot_comm_core in Synology DiskStation Manager (DSM) before 6…

  • Medium 5.9

    Junos OS: A race condition vulnerability may cause RPD daemon to crash when processing a BGP NOTIFICATION message.

    A race condition vulnerability on Juniper Network Junos OS devices may cause the routing protocol daemon (RPD) process to crash and restart while processing a BGP NOTIFICATION message. This issue affects Juniper Networks Junos OS: 16.1 versions prior to 16.1R…