Writable strict sentinel can admit a soft lock beside its holder
Description
Impact
On POSIX, a new StrictSoftFileLock sentinel can inherit group or other write permission. An account with that access can change the sentinel so that a SoftFileLock client enters the protected section while the strict lock remains held. This affects applications sharing a path between strict and legacy soft locks.
Affected version and mitigation
The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.
Filelock now removes group and other write permission when creating strict sentinels and claims. Existing files retain their permissions. Use a private lock directory. If another account had write access to an existing sentinel, stop all clients and replace the sentinel before reusing the path. Fix in PR #985.
Credits
Reported by the filelock scanner: ANT-2026-IHP04UFY.