Race Condition Enabling Link Following in filelock - CVE-2026-112914
Published: November 2, 2026
Vulnerability details
The vulnerability allows a local user to disclose another user's file metadata and enable modification or truncation of that file through subsequent operations by the lock user.
The vulnerability exists due to a race condition enabling symbolic link following in filelock's break_lock_file() restore branch when restoring a live soft-lock marker on runtimes where os.link follows symbolic links. A local user can manipulate a stale marker and replace the renamed break file with a symbolic link between lstat and os.link in a writable shared lock directory without the sticky bit to create a hard link to a file owned by the lock user, expose its metadata, and redirect subsequent file operations by that user to the linked file.
The target file and lock directory must be on the same filesystem, and the lock user must take the lock more than once.