Skip to main content
Menu
Advisories

Planted Windows path prevents private soft-lock recovery

GHSA-FMP2-7MGR-GP5HPublished Updated GitHub

Description

Impact

On Windows, a local account allowed to create drive-root directories can influence the owner identity recorded by SoftFileLock and MarkerSoftFileLock, including for locks in a private directory. If the holder dies, later processes can mistake the dead owner's marker for a remote hold and leave the lock unavailable.

Affected versions and mitigation

Confirmed affected: = 4.2.12. Upgrade to 4.3.0.

Windows now skips the Linux PID-namespace probe. Use the native Windows FileLock where suitable. For an existing stranded marker, verify that the holder has exited before using break_lock(). A finite lifetime can also expire a live holder. Fix in PR #1036

Credits

Scan filelock-20261116-009; finding ANT-2026-K9PQD1EN.

Affected versions

References

GitHub · tox-dev/filelock