Skip to main content
Menu
Advisories

SoftFileLock recovery can admit two holders through a live break name

GHSA-GVHC-QMQX-22PQPublished Updated GitHub

Description

Impact

On POSIX filesystems with atomic name exchange, SoftFileLock can misidentify an active recovery record as abandoned. If another local account can create markers in the shared sticky lock directory, racing recoveries can let two holders enter the same critical section.

Affected versions and fix

Versions 4.2.1 through 4.2.12 are affected. Upgrade to filelock 4.3.0 or later. Recovery leaves a break record in place while the process identified by its name is running. PID reuse can therefore delay cleanup. PR #974

Workaround

Keep the lock in a directory writable only by trusted participants.

Credits

Reported by OSS Scanner (ANT-2026-01PM0HYF).

Affected versions

References

GitHub · tox-dev/filelock