⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

CVE-2026-144392: filelock Windows oplock flaw can extend StrictSoftFileLock waits | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-144392: filelock Windows oplock flaw can extend StrictSoftFileLock waits

Executive summary

CVE-2026-144392 is a Windows-specific availability weakness in filelock, a platform-independent file lock maintained by tox-dev. Before version 4.3.0, a local account that can read an idle StrictSoftFileLock sentinel may establish a Windows opportunistic lock, or oplock, on that sentinel. The resulting kernel-level wait can continue beyond the timeout requested by the calling application, even when the application asks for nonblocking acquisition.

The supplied records classify the issue as CWE-412, Unrestricted Externally Accessible Lock, and associate it with CAPEC-25, Forced Deadlock. The cited CVSS 3.1 base score is 3.3 (LOW), with exploitability and impact sub-scores of 1.8 and 1.4. The exact CVSS vector is not included in the provided material.

The practical consequence is a local denial-of-service condition around lock acquisition. The available sources do not report data disclosure, data modification, remote exploitation, public proof-of-concept code, or active exploitation. Version 4.3.0 contains the upstream fix.

Affected systems

CVE-2026-144392 affects the filelock package maintained by tox-dev before version 4.3.0.

The vulnerable conditions are narrowly defined:

  • The host operating system is Windows.

  • The application uses StrictSoftFileLock.

  • A local account or process can obtain read access to an idle sentinel file.

  • The oplock is established before, or remains active when, another process attempts to acquire the strict lock.

Applications using the default SoftFileLock behavior are not identified as affected by the advisory. The issue is local rather than remotely exploitable.

Technical analysis

filelock uses a sentinel file as the on-disk indication that a lock is held. On Windows, the operating system can grant an opportunistic lock to a process that opens a file in an eligible manner. While that oplock remains active, subsequent file operations may be paused or serialized by the operating system.

Before the fix in filelock 4.3.0, an idle StrictSoftFileLock sentinel could be opened for reading by a local account and placed under an oplock. A later strict-lock acquisition could then wait inside the Windows filesystem layer rather than returning under the timeout implemented by filelock. This also affects a nonblocking acquisition because the delay occurs below the library's own wait-handling layer.

The core weakness is therefore not a failure to encrypt or corrupt the protected resource. It is an externally influenceable lock-acquisition delay. A thread can remain blocked longer than expected, and concurrent workers waiting on the same resource may accumulate behind the stalled acquisition. This creates the forced-deadlock pattern described by CAPEC-25.

The affected behavior does not require write or delete permission on the sentinel itself. Read access is sufficient, provided that the Windows environment permits the attacker or its process to establish the relevant oplock.

Exploitability and impact assessment

The issue is constrained by several prerequisites:

  1. The attacker must already have local access to the Windows host.

  1. The target must use StrictSoftFileLock.

  1. The attacker must be able to read the relevant sentinel.

  1. The oplock must be active during the victim's acquisition attempt.

The provided references contain no enumerated proof-of-concept repository and cite no campaign or other observation of exploitation in the wild. The absence of such reporting means exploitation remains theoretical in the supplied evidence; it does not prove that no exploitation has occurred.

The direct impact is availability degradation at the lock-acquisition step. The impact may be more visible in applications where strict locking sits on a critical path, such as concurrent workers, build or test orchestration, cache coordination, or single-writer workflows. A single delayed thread can have indirect effects when other processes or workers remain dependent on the same lock. The advisory does not describe confidentiality or integrity compromise.

Given the local access requirement, limited affected surface, and availability-only outcome, the real-world risk is assessed as low. The published CVSS 3.1 score of 3.3 also rates the issue as LOW.

Mitigation

The supported fix is to upgrade filelock to version 4.3.0 or later. The package-level update is sufficient; the provided sources do not identify a required operating-system patch.

Relevant upstream materials include:

  • Fix release: https://github.com/tox-dev/filelock/releases/tag/4.3.0

  • Security advisory: https://github.com/tox-dev/filelock/security/advisories/GHSA-f37p-fqrx-f498

  • Fix commit: https://github.com/tox-dev/filelock/commit/5aa061c429efcaec93df35f453a7e7c8299e0449

  • Related pull request: https://github.com/tox-dev/filelock/pull/987

Compensating controls before upgrading

If an immediate dependency update is not possible, the following measures may reduce exposure. These are engineering trade-offs rather than fixes endorsed by the advisory:

  • Restrict read access to the directory containing strict-lock sentinels so that unrelated local accounts cannot open them.

  • Evaluate the default SoftFileLock variant where its different locking semantics are acceptable; the advisory does not identify that variant as affected.

  • Measure lock-acquisition latency and alert when elapsed time materially exceeds the configured timeout, because the kernel-level wait can bypass the library's expected bound.

  • Capture thread stacks and Windows filesystem activity when diagnosing recurring stalls, distinguishing an oplock-related wait from ordinary storage backpressure.

  • Consider disabling opportunistic locking only after evaluating its effects on file servers, SMB clients, and other workloads on the affected volumes or shares.

Expert insight

The notable aspect of CVE-2026-144392 is that timeout enforcement occurs above the layer where the problematic wait occurs. An application can correctly configure a short or nonblocking acquisition, yet the thread still blocks inside Windows because the operating system has placed the sentinel under an oplock. This makes the issue easy to misclassify as an ordinary slow disk or a bug in the calling application.

The fix therefore matters most where filelock is treated as a reliability boundary rather than a convenience helper. StrictSoftFileLock is specifically intended to provide stronger coordination between processes, which makes timeout predictability especially important. A local reader should not be able to undermine that expectation without at least write access to the sentinel.

The weakness remains bounded by local access and the use of a particular lock class. It should not be characterized as a remote code-execution vulnerability, and the absence of exploitation reporting should not be used to infer that every environment is unaffected. Availability-sensitive Windows deployments should prioritize the upstream 4.3.0 update.

Actionable recommendations

  1. Review Python dependency locks and identify installations of filelock below 4.3.0.

  1. Upgrade affected installations to filelock 4.3.0 or later.

  1. Confirm that Windows applications relying on strict locking identify the affected StrictSoftFileLock code path.

  1. Restrict sentinel-directory read access to accounts that legitimately participate in lock coordination.

  1. Add acquisition-latency monitoring so kernel-level waits that exceed configured timeouts remain visible.

  1. Validate lock behavior on Windows after upgrading, particularly in applications that depend on fail-fast acquisition.

منابع

·
← اخبار