Time-of-check Time-of-use (TOCTOU) Race Condition in filelock - #VU169641

 

Time-of-check Time-of-use (TOCTOU) Race Condition in filelock - #VU169641

Published: November 23, 2026


Vulnerability identifier: #VU169641
CSH Severity: Low
CVSS v4: 2 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-367
Exploitation vector: Local access
Exploit availability: No public exploit available

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.


Affected software

filelock

Remediation

Install security update from vendor's website.

filelock - update to 4.3.0

External References

Related Security Bulletins