Skip to content
OpenAdvisories

Weakness (CWE)

CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

Base Incomplete

The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.

How to prevent it (7 mitigations)
  1. Implementation

    The most basic advice for TOCTOU vulnerabilities is to not perform a check before the use. This does not resolve the underlying issue of the execution of a function on a resource whose state and identity cannot be assured, but it does help to limit the false sense of security given by the check.

  2. Implementation

    When the file being altered is owned by the current user and group, set the effective gid and uid to that of the current user and group when executing this statement.

  3. Architecture and Design

    Limit the interleaving of operations on files from multiple processes.

  4. Implementation, Architecture and Design

    If you cannot perform operations atomically and you must share access to the resource between multiple processes or threads, then try to limit the amount of time (CPU cycles) between the check and use of the resource. This will not fix the problem, but it could make it more difficult for an attack to succeed.

  5. Implementation

    Recheck the resource after the use call to verify that the action was taken appropriately.

  6. Architecture and Design

    Ensure that some environmental locking mechanism can be used to protect resources effectively.

  7. Implementation

    Ensure that locking occurs before the check, as opposed to afterwards, such that the resource, as checked, is the same as it is when in use.

Source: MITRE CWE-367

854 results · Feed

  • High 7.0

    Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability

    Concurrent execution using shared resource with improper synchronization ('race condition') in Windows Ancillary Function Driver for WinSock allows an authorized attacker to elevate privileges locally.

  • High 7.0

    Windows NTFS Information Disclosure Vulnerability

    Time-of-check time-of-use (toctou) race condition in Windows NTFS allows an unauthorized attacker to disclose information locally.

  • High 7.8

    Time-of-check Time-of-use race condition for some Intel(R) Connectivity Performance Suite software installers before ve…

  • High 7.2

    Time-of-check time-of-use race condition in firmware for some Intel(R) Converged Security and Management Engine may all…

  • High 7.8

    Time-of-check Time-of-use (TOCTOU) Race Condition in Display

    Memory corruption while processing simultaneous requests via escape path.

  • High 7.8

    Time-of-check Time-of-use (TOCTOU) Race Condition in Camera_Linux

    Memory corruption when using Virtual cdm (Camera Data Mover) to write registers.

  • High 7.8

    Time-of-check Time-of-use (TOCTOU) Race Condition in Camera_Linux

    Memory corruption while submitting blob data to kernel space though IOCTL.

  • High 8.1

    Race condition vulnerability in the virtualization base module. Successful exploitation of this vulnerability may affec…

  • High 7.0

    NVIDIA .run Installer for Linux and Solaris contains a vulnerability where an attacker could use a race condition to es…

  • Medium 6.9

    Race condition in AndroidTV TvSettings

    There exists a TOCTOU race condition in TvSettings AppRestrictionsFragment.java that lead to start of attacker supplied activity in Settings’ context, i.e. system-uid context, thus lead to launchAnyWhere. The core idea is to utilize the time window between th…

  • Medium 5.3

    A logic error was addressed with improved error handling. This issue is fixed in macOS Sequoia 15.6. iCloud Private Rel…

  • High 7.8
    CVE-2025-38352 Exploited Public exploit

    posix-cpu-timers: fix race between handle_posix_cpu_timers() and posix_cpu_timer_del()

    In the Linux kernel, the following vulnerability has been resolved: posix-cpu-timers: fix race between handle_posix_cpu_timers() and posix_cpu_timer_del() If an exiting non-autoreaping task has already passed exit_notify() and calls handle_posix_cpu_timers() …

    KEV Sep 4, 2025
  • Medium 5.1

    TOCTOU race condition vulnerability in ESET products on Windows

    Time-of-check to time-of-use race condition vulnerability potentially allowed an attacker to use the installed ESET security software to clear the content of an arbitrary file on the file system.

  • High 7.8
    CVE-2025-49730 Public exploit

    Microsoft Windows QoS Scheduler Driver Elevation of Privilege Vulnerability

    Time-of-check time-of-use (toctou) race condition in Microsoft Windows QoS scheduler allows an authorized attacker to elevate privileges locally.

  • Medium 6.8

    Windows BitLocker Security Feature Bypass Vulnerability

    Time-of-check time-of-use (toctou) race condition in Windows BitLocker allows an unauthorized attacker to bypass a security feature with a physical attack.

  • Medium 6.8

    Windows BitLocker Security Feature Bypass Vulnerability

    Time-of-check time-of-use (toctou) race condition in Windows BitLocker allows an unauthorized attacker to bypass a security feature with a physical attack.

  • Low 3.2

    A race condition in the Nix, Lix, and Guix package managers allows the removal of content from arbitrary folders. This …

  • Low 3.8

    PEAK-System Driver PCANFD_ADD_FILTERS Time-Of-Check Time-Of-Use Information Disclosure Vulnerability

    PEAK-System Driver PCANFD_ADD_FILTERS Time-Of-Check Time-Of-Use Information Disclosure Vulnerability. This vulnerability allows local attackers to disclose sensitive information on affected installations of PEAK-System Driver. An attacker must first obtain th…

  • High 8.4
    CVE-2025-3464 Public exploit

    A race condition vulnerability exists in Armoury Crate. This vulnerability arises from a Time-of-check Time-of-use issu…

  • Medium 5.3

    Time-of-check Time-of-use (TOCTOU) Race Condition in GitLab

    An issue has been discovered in GitLab EE affecting all versions prior to 17.10.8, 17.11 prior to 17.11.4, and 18.0 prior to 18.0.2. It may have been possible for private repository to be cloned in case of race condition when a secondary node is out of sync.

  • High 7.8

    Time-of-check Time-of-use (TOCTOU) Race Condition in DSP Service

    Memory corruption while processing INIT and multimode invoke IOCTL calls on FastRPC.

  • Medium 6.6

    Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Driver

    Memory corruption may occur while processing the OIS packet parser.

  • Medium 6.6

    Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Driver

    Memory corruption while processing I2C settings in Camera driver.

  • Medium 5.5

    Screen has a TOCTOU race potentially allowing to send SIGHUP, SIGCONT to privileged processes when installed setuid-root

    Screen version 5.0.0 and older version 4 releases have a TOCTOU race potentially allowing to send SIGHUP, SIGCONT to privileged processes when installed setuid-root.

  • Critical 10.0
    CVE-2025-34027 Scanner template EPSS 46%

    Versa Concerto Authentication Bypass File Write Remote Code Execution

    The Versa Concerto SD-WAN orchestration platform is vulnerable to an authentication bypass in the Traefik reverse proxy configuration, allowing at attacker to access administrative endpoints. The Spack upload endpoint can be leveraged for a Time-of-Check to T…

  • High 7.6

    Containerd vulnerable to host filesystem access during image unpack

    containerd is a container runtime. A time-of-check to time-of-use (TOCTOU) vulnerability was found in containerd v2.1.0. While unpacking an image during an image pull, specially crafted container images could arbitrarily modify the host file system. The only …

  • High 8.8

    Zoom Workplace Apps - Time-of-check Time-of-use

    Time-of-check time-of-use race condition in some Zoom Workplace Apps may allow an authenticated user to conduct an escalation of privilege via local access.

  • High 7.5

    Time-of-check time-of-use race condition in the UEFI firmware SmiVariable driver for the Intel(R) Server D50DNP and M50…

  • High 7.7

    Microsoft Virtual Machine Bus (VMBus) Remote Code Execution Vulnerability

    Time-of-check time-of-use (toctou) race condition in Windows Virtual Machine Bus allows an unauthorized attacker to execute code locally.

  • High 7.5
    CVE-2025-29969 Public exploit

    MS-EVEN RPC Remote Code Execution Vulnerability

    Time-of-check time-of-use (toctou) race condition in Windows Fundamentals allows an authorized attacker to execute code over a network.

  • High 7.5

    TOCTOU in SmmWhea

    APTIOV contains a vulnerability in BIOS where an attacker may cause a Time-of-check Time-of-use (TOCTOU) Race Condition by local means. Successful exploitation of this vulnerability may lead to arbitrary code execution.

  • High 7.8

    Avast Cleanup Premium TuneupSvc Link Following Local Privilege Escalation Vulnerability

    Link Following Local Privilege Escalation Vulnerability in TuneupSvc in Avast Cleanup Premium Version 24.2.16593.17810 on Windows 10 Pro x64 allows local attackers to escalate privileges and execute arbitrary code in the context of SYSTEM via creating a symbo…

  • High 7.8

    Link Following Local Privilege Escalation Vulnerability in AVG TuneUp Version 23.4

    Link Following Local Privilege Escalation Vulnerability in TuneUp Service in AVG TuneUp Version 23.4 (build 15592) on Windows 10 allows local attackers to escalate privileges and execute arbitrary code in the context of SYSTEM via creating a symbolic link and…

  • High 7.8

    Link Following Local Privilege Escalation Vulnerability in NortonUtilitiesSvc in Norton Utilities Ultimate (Also affects Avast CleanUp and AVG TuneUp)

    Link Following Local Privilege Escalation Vulnerability in NortonUtilitiesSvc in Norton Utilities Ultimate Version 24.2.16862.6344 on Windows 10 Pro x64 allows local attackers to escalate privileges and execute arbitrary code in the context of SYSTEM via the …

  • Medium 4.2

    Rack session gets restored after deletion

    Rack::Session is a session management implementation for Rack. In versions starting from 2.0.0 to before 2.1.1, when using the Rack::Session::Pool middleware, and provided the attacker can acquire a session cookie (already a major issue), the session may be r…

  • Medium 4.4

    Dell PowerScale OneFS, versions 9.8.0.0 through 9.10.1.0, contain a time-of-check time-of-use (TOCTOU) race condition v…

  • Medium 4.2

    Rack session gets restored after deletion

    Rack is a modular Ruby web server interface. Prior to version 2.2.14, when using the `Rack::Session::Pool` middleware, simultaneous rack requests can restore a deleted rack session, which allows the unauthenticated user to occupy that session. Rack session mi…

  • High 7.8

    Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Driver

    Memory corruption when blob structure is modified by user-space after kernel verification.

  • Medium 5.0

    Tesla Model S Iris Modem Race Condition Firewall Bypass Vulnerability

    Tesla Model S Iris Modem Race Condition Firewall Bypass Vulnerability. This vulnerability allows network-adjacent attackers to bypass the firewall on the Iris modem in affected Tesla Model S vehicles. Authentication is not required to exploit this vulnerabili…

  • Medium 6.5

    Symantec Endpoint Protection Elevation of Privilege

    Symantec Endpoint Protection Windows Agent, running an ERASER Engine prior to 119.1.7.8, may be susceptible to an Elevation of Privilege vulnerability, which may allow an attacker to delete resources that are normally protected from an application or user.