Race Condition Enabling Link Following in filelock - CVE-2026-112938
Published: November 2, 2026
Vulnerability details
The vulnerability allows a local user to create directories and claim files with another user's privileges in unintended locations, disclose limited directory information, cause a denial of service, and bypass another strict lock's mutual exclusion.
The vulnerability exists due to a race condition enabling symbolic link following in filelock's StrictSoftFileLock and AsyncStrictSoftFileLock when resolving claim-directory paths after checking the coordination directory. A local user can replace a renameable <path>.filelock directory with a symbolic link between the check and subsequent pathname operations to redirect claim creation into a directory writable by the lock user's process and strand claims that block another lock. The claims property and force_break() also follow unchecked paths without requiring a race, permitting directory-information disclosure through exposed errors or removal of another lock's live claims during blind recovery.