Skip to main content
Menu
Advisories

Read-only oplock can hold strict lock acquisition past its timeout

GHSA-F37P-FQRX-F498Published Updated GitHub

Description

Impact

On Windows, a local account with read access to an idle StrictSoftFileLock sentinel can delay acquisition beyond the requested timeout. A Windows opportunistic lock (oplock) on the sentinel can keep the caller’s thread waiting inside the operating system, including during a nonblocking acquisition.

Affected version and mitigation

The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.

Filelock now opens the sentinel without waiting for an outstanding oplock break, letting the caller handle contention, cancellation and timeouts. Restrict sentinel read access to participating accounts. This fix covers opening the sentinel during acquisition. Fix in PR #987.

Credits

Reported in the filelock scan as ANT-2026-9GI58YA1.

Affected versions

References

GitHub · tox-dev/filelock