filelock: Read-only oplock can hold strict lock acquisition past its timeout
GHSA-f37p-fqrx-f498 · CVE-2026-144392
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
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.
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-f37p-fqrx-f498
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144392
- WEB https://github.com/tox-dev/filelock/pull/987
- WEB https://github.com/tox-dev/filelock/commit/5aa061c429efcaec93df35f453a7e7c8299e0449
- PACKAGE https://github.com/tox-dev/filelock
- WEB https://github.com/tox-dev/filelock/releases/tag/4.3.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes