Time-of-check Time-of-use (TOCTOU) Race Condition in filelock - #VU169657
Published: November 23, 2026
Vulnerability details
The vulnerability allows a local user to overwrite a victim-owned file writable by the locking process.
The vulnerability exists due to a time-of-check time-of-use race condition in filelock's SQLite-backed ReadWriteLock when SQLite opens the lock database on POSIX. A local user can use rename access in a shared, non-sticky lock directory to redirect the victim's lock operation and overwrite a file.