Time-of-check Time-of-use (TOCTOU) Race Condition in filelock - #VU169641
Published: November 23, 2026
Vulnerability details
The vulnerability allows a local user to break mutual exclusion, letting one caller enter a critical section while another still holds the lock.
The vulnerability exists due to a time-of-check to time-of-use race in SoftFileLock when recovery of a stale marker can expose a foreign-owned record at the public lock path. A local user can create entries in a shared sticky lock directory on a POSIX filesystem that supports atomic name exchange to interfere with recovery and cause two callers to hold the lock concurrently.